eric6/Documentation/Source/eric6.Plugins.CheckerPlugins.CodeStyleChecker.eradicate.html

changeset 7042
2be5b245e1b8
child 7273
391d6b7b1eff
equal deleted inserted replaced
7041:2c14833a2bee 7042:2be5b245e1b8
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.Plugins.CheckerPlugins.CodeStyleChecker.eradicate</title>
4 <meta charset="UTF-8">
5 <style>
6 body {
7 background: #EDECE6;
8 margin: 0em 1em 10em 1em;
9 color: black;
10 }
11
12 h1 { color: white; background: #85774A; }
13 h2 { color: white; background: #85774A; }
14 h3 { color: white; background: #9D936E; }
15 h4 { color: white; background: #9D936E; }
16
17 a { color: #BA6D36; }
18
19 </style>
20 </head>
21 <body><a NAME="top" ID="top"></a>
22 <h1>eric6.Plugins.CheckerPlugins.CodeStyleChecker.eradicate</h1>
23 <p>
24 Removes commented-out Python code.
25 </p>
26 <h3>Global Attributes</h3>
27 <table>
28 <tr><td>MULTILINE_ASSIGNMENT_REGEX</td></tr><tr><td>PARTIAL_DICTIONARY_REGEX</td></tr><tr><td>__version__</td></tr>
29 </table>
30 <h3>Classes</h3>
31 <table>
32 <tr><td>None</td></tr>
33 </table>
34 <h3>Functions</h3>
35 <table>
36 <tr>
37 <td><a href="#comment_contains_code">comment_contains_code</a></td>
38 <td>Return True comment contains code.</td>
39 </tr><tr>
40 <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>
42 </tr><tr>
43 <td><a href="#detect_encoding">detect_encoding</a></td>
44 <td>Return file encoding.</td>
45 </tr><tr>
46 <td><a href="#filter_commented_out_code">filter_commented_out_code</a></td>
47 <td>Yield code with commented out code removed.</td>
48 </tr><tr>
49 <td><a href="#fix_file">fix_file</a></td>
50 <td>Run filter_commented_out_code() on file.</td>
51 </tr><tr>
52 <td><a href="#main">main</a></td>
53 <td>Main entry point.</td>
54 </tr><tr>
55 <td><a href="#multiline_case">multiline_case</a></td>
56 <td>Return True if line is probably part of some multiline code.</td>
57 </tr><tr>
58 <td><a href="#open_with_encoding">open_with_encoding</a></td>
59 <td>Return opened file with a specific encoding.</td>
60 </tr>
61 </table>
62 <hr /><hr />
63 <a NAME="comment_contains_code" ID="comment_contains_code"></a>
64 <h2>comment_contains_code</h2>
65 <b>comment_contains_code</b>(<i>line, aggressive=True</i>)
66 <p>
67 Return True comment contains code.
68 </p>
69 <div align="right"><a href="#top">Up</a></div>
70 <hr /><hr />
71 <a NAME="commented_out_code_line_numbers" ID="commented_out_code_line_numbers"></a>
72 <h2>commented_out_code_line_numbers</h2>
73 <b>commented_out_code_line_numbers</b>(<i>source, aggressive=True</i>)
74 <p>
75 Yield line numbers of commented-out code.
76 </p>
77 <div align="right"><a href="#top">Up</a></div>
78 <hr /><hr />
79 <a NAME="detect_encoding" ID="detect_encoding"></a>
80 <h2>detect_encoding</h2>
81 <b>detect_encoding</b>(<i>filename</i>)
82 <p>
83 Return file encoding.
84 </p>
85 <div align="right"><a href="#top">Up</a></div>
86 <hr /><hr />
87 <a NAME="filter_commented_out_code" ID="filter_commented_out_code"></a>
88 <h2>filter_commented_out_code</h2>
89 <b>filter_commented_out_code</b>(<i>source, aggressive=True</i>)
90 <p>
91 Yield code with commented out code removed.
92 </p>
93 <div align="right"><a href="#top">Up</a></div>
94 <hr /><hr />
95 <a NAME="fix_file" ID="fix_file"></a>
96 <h2>fix_file</h2>
97 <b>fix_file</b>(<i>filename, args, standard_out</i>)
98 <p>
99 Run filter_commented_out_code() on file.
100 </p>
101 <div align="right"><a href="#top">Up</a></div>
102 <hr /><hr />
103 <a NAME="main" ID="main"></a>
104 <h2>main</h2>
105 <b>main</b>(<i>argv, standard_out, standard_error</i>)
106 <p>
107 Main entry point.
108 </p>
109 <div align="right"><a href="#top">Up</a></div>
110 <hr /><hr />
111 <a NAME="multiline_case" ID="multiline_case"></a>
112 <h2>multiline_case</h2>
113 <b>multiline_case</b>(<i>line, aggressive=True</i>)
114 <p>
115 Return True if line is probably part of some multiline code.
116 </p>
117 <div align="right"><a href="#top">Up</a></div>
118 <hr /><hr />
119 <a NAME="open_with_encoding" ID="open_with_encoding"></a>
120 <h2>open_with_encoding</h2>
121 <b>open_with_encoding</b>(<i>filename, encoding, mode='r'</i>)
122 <p>
123 Return opened file with a specific encoding.
124 </p>
125 <div align="right"><a href="#top">Up</a></div>
126 <hr />
127 </body></html>

eric ide

mercurial