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

changeset 2925
04896af1b0e1
parent 2923
01ac1f364b38
child 2938
42d82e978d27
equal deleted inserted replaced
2923:01ac1f364b38 2925:04896af1b0e1
73 <td>Private method to check, if the code should be fixed.</td> 73 <td>Private method to check, if the code should be fixed.</td>
74 </tr><tr> 74 </tr><tr>
75 <td><a href="#Pep8Fixer.__findLogical">__findLogical</a></td> 75 <td><a href="#Pep8Fixer.__findLogical">__findLogical</a></td>
76 <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>
77 </tr><tr> 77 </tr><tr>
78 <td><a href="#Pep8Fixer.__fixD111">__fixD111</a></td>
79 <td>Private method to fix docstring enclosed in wrong quotes (D111).</td>
80 </tr><tr>
81 <td><a href="#Pep8Fixer.__fixD112">__fixD112</a></td>
82 <td>Private method to fix docstring 'r' or 'u' in leading quotes (D112, D113).</td>
83 </tr><tr>
78 <td><a href="#Pep8Fixer.__fixD121">__fixD121</a></td> 84 <td><a href="#Pep8Fixer.__fixD121">__fixD121</a></td>
79 <td>Private method to fix a single line docstring on multiple lines (D121).</td> 85 <td>Private method to fix a single line docstring on multiple lines (D121).</td>
80 </tr><tr> 86 </tr><tr>
81 <td><a href="#Pep8Fixer.__fixD131">__fixD131</a></td> 87 <td><a href="#Pep8Fixer.__fixD131">__fixD131</a></td>
82 <td>Private method to fix a single line docstring on multiple lines (D121).</td> 88 <td>Private method to fix a single line docstring on multiple lines (D121).</td>
276 </p><dl> 282 </p><dl>
277 <dt>Returns:</dt> 283 <dt>Returns:</dt>
278 <dd> 284 <dd>
279 tuple containing two lists of integer with start and end tuples 285 tuple containing two lists of integer with start and end tuples
280 of lines 286 of lines
287 </dd>
288 </dl><a NAME="Pep8Fixer.__fixD111" ID="Pep8Fixer.__fixD111"></a>
289 <h4>Pep8Fixer.__fixD111</h4>
290 <b>__fixD111</b>(<i>code, line, pos</i>)
291 <p>
292 Private method to fix docstring enclosed in wrong quotes (D111).
293 </p><dl>
294 <dt><i>code</i></dt>
295 <dd>
296 code of the issue (string)
297 </dd><dt><i>line</i></dt>
298 <dd>
299 line number of the issue (integer)
300 </dd><dt><i>pos</i></dt>
301 <dd>
302 position inside line (integer)
303 </dd>
304 </dl><dl>
305 <dt>Returns:</dt>
306 <dd>
307 value indicating an applied/deferred fix (-1, 0, 1),
308 a message for the fix (string) and an ID for a deferred
309 fix (integer)
310 </dd>
311 </dl><a NAME="Pep8Fixer.__fixD112" ID="Pep8Fixer.__fixD112"></a>
312 <h4>Pep8Fixer.__fixD112</h4>
313 <b>__fixD112</b>(<i>code, line, pos</i>)
314 <p>
315 Private method to fix docstring 'r' or 'u' in leading quotes
316 (D112, D113).
317 </p><dl>
318 <dt><i>code</i></dt>
319 <dd>
320 code of the issue (string)
321 </dd><dt><i>line</i></dt>
322 <dd>
323 line number of the issue (integer)
324 </dd><dt><i>pos</i></dt>
325 <dd>
326 position inside line (integer)
327 </dd>
328 </dl><dl>
329 <dt>Returns:</dt>
330 <dd>
331 value indicating an applied/deferred fix (-1, 0, 1),
332 a message for the fix (string) and an ID for a deferred
333 fix (integer)
281 </dd> 334 </dd>
282 </dl><a NAME="Pep8Fixer.__fixD121" ID="Pep8Fixer.__fixD121"></a> 335 </dl><a NAME="Pep8Fixer.__fixD121" ID="Pep8Fixer.__fixD121"></a>
283 <h4>Pep8Fixer.__fixD121</h4> 336 <h4>Pep8Fixer.__fixD121</h4>
284 <b>__fixD121</b>(<i>code, line, pos, apply=False</i>) 337 <b>__fixD121</b>(<i>code, line, pos, apply=False</i>)
285 <p> 338 <p>

eric ide

mercurial