8198:1c765dc90c21 | 8199:f6db89b067e7 |
---|---|
768 <tr> | 768 <tr> |
769 <td><a href="#MiscellaneousChecker.__error">__error</a></td> | 769 <td><a href="#MiscellaneousChecker.__error">__error</a></td> |
770 <td>Private method to record an issue.</td> | 770 <td>Private method to record an issue.</td> |
771 </tr> | 771 </tr> |
772 <tr> | 772 <tr> |
773 <td><a href="#MiscellaneousChecker.__generateTree">__generateTree</a></td> | |
774 <td>Private method to generate an AST for our source.</td> | |
775 </tr> | |
776 <tr> | |
777 <td><a href="#MiscellaneousChecker.__getCoding">__getCoding</a></td> | 773 <td><a href="#MiscellaneousChecker.__getCoding">__getCoding</a></td> |
778 <td>Private method to get the defined coding of the source.</td> | 774 <td>Private method to get the defined coding of the source.</td> |
779 </tr> | 775 </tr> |
780 <tr> | 776 <tr> |
781 <td><a href="#MiscellaneousChecker.__getFields">__getFields</a></td> | 777 <td><a href="#MiscellaneousChecker.__getFields">__getFields</a></td> |
784 <tr> | 780 <tr> |
785 <td><a href="#MiscellaneousChecker.__ignoreCode">__ignoreCode</a></td> | 781 <td><a href="#MiscellaneousChecker.__ignoreCode">__ignoreCode</a></td> |
786 <td>Private method to check if the message code should be ignored.</td> | 782 <td>Private method to check if the message code should be ignored.</td> |
787 </tr> | 783 </tr> |
788 <tr> | 784 <tr> |
789 <td><a href="#MiscellaneousChecker.__reportInvalidSyntax">__reportInvalidSyntax</a></td> | |
790 <td>Private method to report a syntax error.</td> | |
791 </tr> | |
792 <tr> | |
793 <td><a href="#MiscellaneousChecker.run">run</a></td> | 785 <td><a href="#MiscellaneousChecker.run">run</a></td> |
794 <td>Public method to check the given source against miscellaneous conditions.</td> | 786 <td>Public method to check the given source against miscellaneous conditions.</td> |
795 </tr> | 787 </tr> |
796 </table> | 788 </table> |
797 <h3>Static Methods</h3> | 789 <h3>Static Methods</h3> |
800 <tr><td>None</td></tr> | 792 <tr><td>None</td></tr> |
801 </table> | 793 </table> |
802 | 794 |
803 <a NAME="MiscellaneousChecker.__init__" ID="MiscellaneousChecker.__init__"></a> | 795 <a NAME="MiscellaneousChecker.__init__" ID="MiscellaneousChecker.__init__"></a> |
804 <h4>MiscellaneousChecker (Constructor)</h4> | 796 <h4>MiscellaneousChecker (Constructor)</h4> |
805 <b>MiscellaneousChecker</b>(<i>source, filename, select, ignore, expected, repeat, args</i>) | 797 <b>MiscellaneousChecker</b>(<i>source, filename, tree, select, ignore, expected, repeat, args</i>) |
806 | 798 |
807 <p> | 799 <p> |
808 Constructor | 800 Constructor |
809 </p> | 801 </p> |
810 <dl> | 802 <dl> |
814 source code to be checked | 806 source code to be checked |
815 </dd> | 807 </dd> |
816 <dt><i>filename</i> (str)</dt> | 808 <dt><i>filename</i> (str)</dt> |
817 <dd> | 809 <dd> |
818 name of the source file | 810 name of the source file |
811 </dd> | |
812 <dt><i>tree</i> (ast.Module)</dt> | |
813 <dd> | |
814 AST tree of the source code | |
819 </dd> | 815 </dd> |
820 <dt><i>select</i> (list of str)</dt> | 816 <dt><i>select</i> (list of str)</dt> |
821 <dd> | 817 <dd> |
822 list of selected codes | 818 list of selected codes |
823 </dd> | 819 </dd> |
1022 <dt><i>args</i> (list)</dt> | 1018 <dt><i>args</i> (list)</dt> |
1023 <dd> | 1019 <dd> |
1024 arguments for the message | 1020 arguments for the message |
1025 </dd> | 1021 </dd> |
1026 </dl> | 1022 </dl> |
1027 <a NAME="MiscellaneousChecker.__generateTree" ID="MiscellaneousChecker.__generateTree"></a> | |
1028 <h4>MiscellaneousChecker.__generateTree</h4> | |
1029 <b>__generateTree</b>(<i></i>) | |
1030 | |
1031 <p> | |
1032 Private method to generate an AST for our source. | |
1033 </p> | |
1034 <dl> | |
1035 <dt>Return:</dt> | |
1036 <dd> | |
1037 generated AST | |
1038 </dd> | |
1039 </dl> | |
1040 <dl> | |
1041 <dt>Return Type:</dt> | |
1042 <dd> | |
1043 ast.AST | |
1044 </dd> | |
1045 </dl> | |
1046 <a NAME="MiscellaneousChecker.__getCoding" ID="MiscellaneousChecker.__getCoding"></a> | 1023 <a NAME="MiscellaneousChecker.__getCoding" ID="MiscellaneousChecker.__getCoding"></a> |
1047 <h4>MiscellaneousChecker.__getCoding</h4> | 1024 <h4>MiscellaneousChecker.__getCoding</h4> |
1048 <b>__getCoding</b>(<i></i>) | 1025 <b>__getCoding</b>(<i></i>) |
1049 | 1026 |
1050 <p> | 1027 <p> |
1113 <dt>Return Type:</dt> | 1090 <dt>Return Type:</dt> |
1114 <dd> | 1091 <dd> |
1115 bool | 1092 bool |
1116 </dd> | 1093 </dd> |
1117 </dl> | 1094 </dl> |
1118 <a NAME="MiscellaneousChecker.__reportInvalidSyntax" ID="MiscellaneousChecker.__reportInvalidSyntax"></a> | |
1119 <h4>MiscellaneousChecker.__reportInvalidSyntax</h4> | |
1120 <b>__reportInvalidSyntax</b>(<i></i>) | |
1121 | |
1122 <p> | |
1123 Private method to report a syntax error. | |
1124 </p> | |
1125 <a NAME="MiscellaneousChecker.run" ID="MiscellaneousChecker.run"></a> | 1095 <a NAME="MiscellaneousChecker.run" ID="MiscellaneousChecker.run"></a> |
1126 <h4>MiscellaneousChecker.run</h4> | 1096 <h4>MiscellaneousChecker.run</h4> |
1127 <b>run</b>(<i></i>) | 1097 <b>run</b>(<i></i>) |
1128 | 1098 |
1129 <p> | 1099 <p> |