src/eric7/Documentation/Source/eric7.Plugins.CheckerPlugins.CodeStyleChecker.Imports.ImportsChecker.html

branch
eric7
changeset 9295
d14096c04126
parent 9209
b99e7fd55fd3
child 9458
3b41bb7d1623
equal deleted inserted replaced
9294:3c12aacd98d8 9295:d14096c04126
77 <tr> 77 <tr>
78 <td><a href="#ImportsChecker.__checkUnnecessaryAlias">__checkUnnecessaryAlias</a></td> 78 <td><a href="#ImportsChecker.__checkUnnecessaryAlias">__checkUnnecessaryAlias</a></td>
79 <td>Private method to check unnecessary import aliases.</td> 79 <td>Private method to check unnecessary import aliases.</td>
80 </tr> 80 </tr>
81 <tr> 81 <tr>
82 <td><a href="#ImportsChecker.__compileUnstructuredGlob">__compileUnstructuredGlob</a></td>
83 <td>Private method to convert a pattern to a regex such that ".*" matches zero or more modules.</td>
84 </tr>
85 <tr>
82 <td><a href="#ImportsChecker.__error">__error</a></td> 86 <td><a href="#ImportsChecker.__error">__error</a></td>
83 <td>Private method to record an issue.</td> 87 <td>Private method to record an issue.</td>
84 </tr> 88 </tr>
85 <tr> 89 <tr>
86 <td><a href="#ImportsChecker.__findErrorInAll">__findErrorInAll</a></td> 90 <td><a href="#ImportsChecker.__findErrorInAll">__findErrorInAll</a></td>
91 <td>Private method to find all import and import from nodes of the given tree.</td> 95 <td>Private method to find all import and import from nodes of the given tree.</td>
92 </tr> 96 </tr>
93 <tr> 97 <tr>
94 <td><a href="#ImportsChecker.__ignoreCode">__ignoreCode</a></td> 98 <td><a href="#ImportsChecker.__ignoreCode">__ignoreCode</a></td>
95 <td>Private method to check if the message code should be ignored.</td> 99 <td>Private method to check if the message code should be ignored.</td>
100 </tr>
101 <tr>
102 <td><a href="#ImportsChecker.__isModuleBanned">__isModuleBanned</a></td>
103 <td>Private method to check, if the given module name banned.</td>
96 </tr> 104 </tr>
97 <tr> 105 <tr>
98 <td><a href="#ImportsChecker.__tidyImports">__tidyImports</a></td> 106 <td><a href="#ImportsChecker.__tidyImports">__tidyImports</a></td>
99 <td>Private method to check various other import related topics.</td> 107 <td>Private method to check various other import related topics.</td>
100 </tr> 108 </tr>
209 <dt><i>node</i> (ast.AST)</dt> 217 <dt><i>node</i> (ast.AST)</dt>
210 <dd> 218 <dd>
211 reference to the node to be checked 219 reference to the node to be checked
212 </dd> 220 </dd>
213 </dl> 221 </dl>
222 <a NAME="ImportsChecker.__compileUnstructuredGlob" ID="ImportsChecker.__compileUnstructuredGlob"></a>
223 <h4>ImportsChecker.__compileUnstructuredGlob</h4>
224 <b>__compileUnstructuredGlob</b>(<i>module</i>)
225
226 <p>
227 Private method to convert a pattern to a regex such that ".*" matches zero or
228 more modules.
229 </p>
230 <dl>
231
232 <dt><i>module</i> (str)</dt>
233 <dd>
234 module pattern to be converted
235 </dd>
236 </dl>
237 <dl>
238 <dt>Return:</dt>
239 <dd>
240 compiled regex
241 </dd>
242 </dl>
243 <dl>
244 <dt>Return Type:</dt>
245 <dd>
246 re.regex object
247 </dd>
248 </dl>
214 <a NAME="ImportsChecker.__error" ID="ImportsChecker.__error"></a> 249 <a NAME="ImportsChecker.__error" ID="ImportsChecker.__error"></a>
215 <h4>ImportsChecker.__error</h4> 250 <h4>ImportsChecker.__error</h4>
216 <b>__error</b>(<i>lineNumber, offset, code, *args</i>) 251 <b>__error</b>(<i>lineNumber, offset, code, *args</i>)
217 252
218 <p> 253 <p>
314 <dt>Return Type:</dt> 349 <dt>Return Type:</dt>
315 <dd> 350 <dd>
316 bool 351 bool
317 </dd> 352 </dd>
318 </dl> 353 </dl>
354 <a NAME="ImportsChecker.__isModuleBanned" ID="ImportsChecker.__isModuleBanned"></a>
355 <h4>ImportsChecker.__isModuleBanned</h4>
356 <b>__isModuleBanned</b>(<i>moduleName</i>)
357
358 <p>
359 Private method to check, if the given module name banned.
360 </p>
361 <dl>
362
363 <dt><i>moduleName</i> (str)</dt>
364 <dd>
365 module name to be checked
366 </dd>
367 </dl>
368 <dl>
369 <dt>Return:</dt>
370 <dd>
371 flag indicating a banned module
372 </dd>
373 </dl>
374 <dl>
375 <dt>Return Type:</dt>
376 <dd>
377 bool
378 </dd>
379 </dl>
319 <a NAME="ImportsChecker.__tidyImports" ID="ImportsChecker.__tidyImports"></a> 380 <a NAME="ImportsChecker.__tidyImports" ID="ImportsChecker.__tidyImports"></a>
320 <h4>ImportsChecker.__tidyImports</h4> 381 <h4>ImportsChecker.__tidyImports</h4>
321 <b>__tidyImports</b>(<i></i>) 382 <b>__tidyImports</b>(<i></i>)
322 383
323 <p> 384 <p>

eric ide

mercurial