16 |
16 |
17 a { color: #BA6D36; } |
17 a { color: #BA6D36; } |
18 |
18 |
19 </style> |
19 </style> |
20 </head> |
20 </head> |
21 <body><a NAME="top" ID="top"></a> |
21 <body> |
|
22 <a NAME="top" ID="top"></a> |
22 <h1>eric6.Plugins.CheckerPlugins.CodeStyleChecker.eradicate</h1> |
23 <h1>eric6.Plugins.CheckerPlugins.CodeStyleChecker.eradicate</h1> |
|
24 |
23 <p> |
25 <p> |
24 Removes commented-out Python code. |
26 Removes commented-out Python code. |
25 </p> |
27 </p> |
26 <h3>Global Attributes</h3> |
28 <h3>Global Attributes</h3> |
|
29 |
27 <table> |
30 <table> |
28 <tr><td>MULTILINE_ASSIGNMENT_REGEX</td></tr><tr><td>PARTIAL_DICTIONARY_REGEX</td></tr><tr><td>__version__</td></tr> |
31 <tr><td>MULTILINE_ASSIGNMENT_REGEX</td></tr><tr><td>PARTIAL_DICTIONARY_REGEX</td></tr><tr><td>__version__</td></tr> |
29 </table> |
32 </table> |
30 <h3>Classes</h3> |
33 <h3>Classes</h3> |
|
34 |
31 <table> |
35 <table> |
32 <tr><td>None</td></tr> |
36 <tr><td>None</td></tr> |
33 </table> |
37 </table> |
34 <h3>Functions</h3> |
38 <h3>Functions</h3> |
|
39 |
35 <table> |
40 <table> |
|
41 |
36 <tr> |
42 <tr> |
37 <td><a href="#comment_contains_code">comment_contains_code</a></td> |
43 <td><a href="#comment_contains_code">comment_contains_code</a></td> |
38 <td>Return True comment contains code.</td> |
44 <td>Return True comment contains code.</td> |
39 </tr><tr> |
45 </tr> |
|
46 <tr> |
40 <td><a href="#commented_out_code_line_numbers">commented_out_code_line_numbers</a></td> |
47 <td><a href="#commented_out_code_line_numbers">commented_out_code_line_numbers</a></td> |
41 <td>Yield line numbers of commented-out code.</td> |
48 <td>Yield line numbers of commented-out code.</td> |
42 </tr><tr> |
49 </tr> |
|
50 <tr> |
43 <td><a href="#detect_encoding">detect_encoding</a></td> |
51 <td><a href="#detect_encoding">detect_encoding</a></td> |
44 <td>Return file encoding.</td> |
52 <td>Return file encoding.</td> |
45 </tr><tr> |
53 </tr> |
|
54 <tr> |
46 <td><a href="#filter_commented_out_code">filter_commented_out_code</a></td> |
55 <td><a href="#filter_commented_out_code">filter_commented_out_code</a></td> |
47 <td>Yield code with commented out code removed.</td> |
56 <td>Yield code with commented out code removed.</td> |
48 </tr><tr> |
57 </tr> |
|
58 <tr> |
49 <td><a href="#fix_file">fix_file</a></td> |
59 <td><a href="#fix_file">fix_file</a></td> |
50 <td>Run filter_commented_out_code() on file.</td> |
60 <td>Run filter_commented_out_code() on file.</td> |
51 </tr><tr> |
61 </tr> |
|
62 <tr> |
52 <td><a href="#main">main</a></td> |
63 <td><a href="#main">main</a></td> |
53 <td>Main entry point.</td> |
64 <td>Main entry point.</td> |
54 </tr><tr> |
65 </tr> |
|
66 <tr> |
55 <td><a href="#multiline_case">multiline_case</a></td> |
67 <td><a href="#multiline_case">multiline_case</a></td> |
56 <td>Return True if line is probably part of some multiline code.</td> |
68 <td>Return True if line is probably part of some multiline code.</td> |
57 </tr><tr> |
69 </tr> |
|
70 <tr> |
58 <td><a href="#open_with_encoding">open_with_encoding</a></td> |
71 <td><a href="#open_with_encoding">open_with_encoding</a></td> |
59 <td>Return opened file with a specific encoding.</td> |
72 <td>Return opened file with a specific encoding.</td> |
60 </tr> |
73 </tr> |
61 </table> |
74 </table> |
62 <hr /><hr /> |
75 <hr /> |
|
76 <hr /> |
63 <a NAME="comment_contains_code" ID="comment_contains_code"></a> |
77 <a NAME="comment_contains_code" ID="comment_contains_code"></a> |
64 <h2>comment_contains_code</h2> |
78 <h2>comment_contains_code</h2> |
65 <b>comment_contains_code</b>(<i>line, aggressive=True</i>) |
79 <b>comment_contains_code</b>(<i>line, aggressive=True</i>) |
|
80 |
66 <p> |
81 <p> |
67 Return True comment contains code. |
82 Return True comment contains code. |
68 </p> |
83 </p> |
69 <div align="right"><a href="#top">Up</a></div> |
84 <div align="right"><a href="#top">Up</a></div> |
70 <hr /><hr /> |
85 <hr /> |
|
86 <hr /> |
71 <a NAME="commented_out_code_line_numbers" ID="commented_out_code_line_numbers"></a> |
87 <a NAME="commented_out_code_line_numbers" ID="commented_out_code_line_numbers"></a> |
72 <h2>commented_out_code_line_numbers</h2> |
88 <h2>commented_out_code_line_numbers</h2> |
73 <b>commented_out_code_line_numbers</b>(<i>source, aggressive=True</i>) |
89 <b>commented_out_code_line_numbers</b>(<i>source, aggressive=True</i>) |
|
90 |
74 <p> |
91 <p> |
75 Yield line numbers of commented-out code. |
92 Yield line numbers of commented-out code. |
76 </p> |
93 </p> |
77 <div align="right"><a href="#top">Up</a></div> |
94 <div align="right"><a href="#top">Up</a></div> |
78 <hr /><hr /> |
95 <hr /> |
|
96 <hr /> |
79 <a NAME="detect_encoding" ID="detect_encoding"></a> |
97 <a NAME="detect_encoding" ID="detect_encoding"></a> |
80 <h2>detect_encoding</h2> |
98 <h2>detect_encoding</h2> |
81 <b>detect_encoding</b>(<i>filename</i>) |
99 <b>detect_encoding</b>(<i>filename</i>) |
|
100 |
82 <p> |
101 <p> |
83 Return file encoding. |
102 Return file encoding. |
84 </p> |
103 </p> |
85 <div align="right"><a href="#top">Up</a></div> |
104 <div align="right"><a href="#top">Up</a></div> |
86 <hr /><hr /> |
105 <hr /> |
|
106 <hr /> |
87 <a NAME="filter_commented_out_code" ID="filter_commented_out_code"></a> |
107 <a NAME="filter_commented_out_code" ID="filter_commented_out_code"></a> |
88 <h2>filter_commented_out_code</h2> |
108 <h2>filter_commented_out_code</h2> |
89 <b>filter_commented_out_code</b>(<i>source, aggressive=True</i>) |
109 <b>filter_commented_out_code</b>(<i>source, aggressive=True</i>) |
|
110 |
90 <p> |
111 <p> |
91 Yield code with commented out code removed. |
112 Yield code with commented out code removed. |
92 </p> |
113 </p> |
93 <div align="right"><a href="#top">Up</a></div> |
114 <div align="right"><a href="#top">Up</a></div> |
94 <hr /><hr /> |
115 <hr /> |
|
116 <hr /> |
95 <a NAME="fix_file" ID="fix_file"></a> |
117 <a NAME="fix_file" ID="fix_file"></a> |
96 <h2>fix_file</h2> |
118 <h2>fix_file</h2> |
97 <b>fix_file</b>(<i>filename, args, standard_out</i>) |
119 <b>fix_file</b>(<i>filename, args, standard_out</i>) |
|
120 |
98 <p> |
121 <p> |
99 Run filter_commented_out_code() on file. |
122 Run filter_commented_out_code() on file. |
100 </p> |
123 </p> |
101 <div align="right"><a href="#top">Up</a></div> |
124 <div align="right"><a href="#top">Up</a></div> |
102 <hr /><hr /> |
125 <hr /> |
|
126 <hr /> |
103 <a NAME="main" ID="main"></a> |
127 <a NAME="main" ID="main"></a> |
104 <h2>main</h2> |
128 <h2>main</h2> |
105 <b>main</b>(<i>argv, standard_out, standard_error</i>) |
129 <b>main</b>(<i>argv, standard_out, standard_error</i>) |
|
130 |
106 <p> |
131 <p> |
107 Main entry point. |
132 Main entry point. |
108 </p> |
133 </p> |
109 <div align="right"><a href="#top">Up</a></div> |
134 <div align="right"><a href="#top">Up</a></div> |
110 <hr /><hr /> |
135 <hr /> |
|
136 <hr /> |
111 <a NAME="multiline_case" ID="multiline_case"></a> |
137 <a NAME="multiline_case" ID="multiline_case"></a> |
112 <h2>multiline_case</h2> |
138 <h2>multiline_case</h2> |
113 <b>multiline_case</b>(<i>line, aggressive=True</i>) |
139 <b>multiline_case</b>(<i>line, aggressive=True</i>) |
|
140 |
114 <p> |
141 <p> |
115 Return True if line is probably part of some multiline code. |
142 Return True if line is probably part of some multiline code. |
116 </p> |
143 </p> |
117 <div align="right"><a href="#top">Up</a></div> |
144 <div align="right"><a href="#top">Up</a></div> |
118 <hr /><hr /> |
145 <hr /> |
|
146 <hr /> |
119 <a NAME="open_with_encoding" ID="open_with_encoding"></a> |
147 <a NAME="open_with_encoding" ID="open_with_encoding"></a> |
120 <h2>open_with_encoding</h2> |
148 <h2>open_with_encoding</h2> |
121 <b>open_with_encoding</b>(<i>filename, encoding, mode='r'</i>) |
149 <b>open_with_encoding</b>(<i>filename, encoding, mode='r'</i>) |
|
150 |
122 <p> |
151 <p> |
123 Return opened file with a specific encoding. |
152 Return opened file with a specific encoding. |
124 </p> |
153 </p> |
125 <div align="right"><a href="#top">Up</a></div> |
154 <div align="right"><a href="#top">Up</a></div> |
126 <hr /> |
155 <hr /> |