Documentation/Source/eric5.Plugins.CheckerPlugins.Pep8.Pep8Fixer.html

changeset 2878
61042247f793
parent 2876
bfa39cf40277
child 2885
7adb2d9880be
equal deleted inserted replaced
2876:bfa39cf40277 2878:61042247f793
64 <table> 64 <table>
65 <tr> 65 <tr>
66 <td><a href="#Pep8Fixer.__init__">Pep8Fixer</a></td> 66 <td><a href="#Pep8Fixer.__init__">Pep8Fixer</a></td>
67 <td>Constructor</td> 67 <td>Constructor</td>
68 </tr><tr> 68 </tr><tr>
69 <td><a href="#Pep8Fixer.__codeMatch">__codeMatch</a></td>
70 <td>Private method to check, if the code should be fixed.</td>
71 </tr><tr>
69 <td><a href="#Pep8Fixer.__finalize">__finalize</a></td> 72 <td><a href="#Pep8Fixer.__finalize">__finalize</a></td>
70 <td>Private method to apply all deferred fixes.</td> 73 <td>Private method to apply all deferred fixes.</td>
71 </tr><tr> 74 </tr><tr>
72 <td><a href="#Pep8Fixer.__findLogical">__findLogical</a></td> 75 <td><a href="#Pep8Fixer.__findLogical">__findLogical</a></td>
73 <td>Private method to extract the index of all the starts and ends of lines.</td> 76 <td>Private method to extract the index of all the starts and ends of lines.</td>
165 <td><a href="#Pep8Fixer.__getLogical">__getLogical</a></td> 168 <td><a href="#Pep8Fixer.__getLogical">__getLogical</a></td>
166 <td>Private method to get the logical line corresponding to the given position.</td> 169 <td>Private method to get the logical line corresponding to the given position.</td>
167 </tr><tr> 170 </tr><tr>
168 <td><a href="#Pep8Fixer.fixIssue">fixIssue</a></td> 171 <td><a href="#Pep8Fixer.fixIssue">fixIssue</a></td>
169 <td>Public method to fix the fixable issues.</td> 172 <td>Public method to fix the fixable issues.</td>
173 </tr><tr>
174 <td><a href="#Pep8Fixer.mutualStartswith">mutualStartswith</a></td>
175 <td>Local helper method to compare the beginnings of two strings against each other.</td>
170 </tr><tr> 176 </tr><tr>
171 <td><a href="#Pep8Fixer.saveFile">saveFile</a></td> 177 <td><a href="#Pep8Fixer.saveFile">saveFile</a></td>
172 <td>Public method to save the modified file.</td> 178 <td>Public method to save the modified file.</td>
173 </tr> 179 </tr>
174 </table> 180 </table>
204 <dd> 210 <dd>
205 maximum allowed line length (integer) 211 maximum allowed line length (integer)
206 </dd><dt><i>inPlace</i></dt> 212 </dd><dt><i>inPlace</i></dt>
207 <dd> 213 <dd>
208 flag indicating to modify the file in place (boolean) 214 flag indicating to modify the file in place (boolean)
215 </dd>
216 </dl><a NAME="Pep8Fixer.__codeMatch" ID="Pep8Fixer.__codeMatch"></a>
217 <h4>Pep8Fixer.__codeMatch</h4>
218 <b>__codeMatch</b>(<i>code</i>)
219 <p>
220 Private method to check, if the code should be fixed.
221 </p><dl>
222 <dt><i>code</i></dt>
223 <dd>
224 to check (string)
225 </dd>
226 </dl><dl>
227 <dt>Returns:</dt>
228 <dd>
229 flag indicating it should be fixed (boolean)
209 </dd> 230 </dd>
210 </dl><a NAME="Pep8Fixer.__finalize" ID="Pep8Fixer.__finalize"></a> 231 </dl><a NAME="Pep8Fixer.__finalize" ID="Pep8Fixer.__finalize"></a>
211 <h4>Pep8Fixer.__finalize</h4> 232 <h4>Pep8Fixer.__finalize</h4>
212 <b>__finalize</b>(<i></i>) 233 <b>__finalize</b>(<i></i>)
213 <p> 234 <p>
953 </dl><dl> 974 </dl><dl>
954 <dt>Returns:</dt> 975 <dt>Returns:</dt>
955 <dd> 976 <dd>
956 flag indicating an applied fix (boolean) and a message for 977 flag indicating an applied fix (boolean) and a message for
957 the fix (string) 978 the fix (string)
979 </dd>
980 </dl><a NAME="Pep8Fixer.mutualStartswith" ID="Pep8Fixer.mutualStartswith"></a>
981 <h4>Pep8Fixer.mutualStartswith</h4>
982 <b>mutualStartswith</b>(<i>b</i>)
983 <p>
984 Local helper method to compare the beginnings of two strings
985 against each other.
986 </p><dl>
987 <dt>Returns:</dt>
988 <dd>
989 flag indicating that one string starts with the other
990 (boolean)
958 </dd> 991 </dd>
959 </dl><a NAME="Pep8Fixer.saveFile" ID="Pep8Fixer.saveFile"></a> 992 </dl><a NAME="Pep8Fixer.saveFile" ID="Pep8Fixer.saveFile"></a>
960 <h4>Pep8Fixer.saveFile</h4> 993 <h4>Pep8Fixer.saveFile</h4>
961 <b>saveFile</b>(<i>encoding</i>) 994 <b>saveFile</b>(<i>encoding</i>)
962 <p> 995 <p>

eric ide

mercurial