--- a/src/eric7/Documentation/Source/eric7.Plugins.CheckerPlugins.CodeStyleChecker.Imports.ImportsChecker.html Tue Aug 23 19:33:07 2022 +0200 +++ b/src/eric7/Documentation/Source/eric7.Plugins.CheckerPlugins.CodeStyleChecker.Imports.ImportsChecker.html Tue Aug 23 19:35:42 2022 +0200 @@ -79,6 +79,10 @@ <td>Private method to check unnecessary import aliases.</td> </tr> <tr> +<td><a href="#ImportsChecker.__compileUnstructuredGlob">__compileUnstructuredGlob</a></td> +<td>Private method to convert a pattern to a regex such that ".*" matches zero or more modules.</td> +</tr> +<tr> <td><a href="#ImportsChecker.__error">__error</a></td> <td>Private method to record an issue.</td> </tr> @@ -95,6 +99,10 @@ <td>Private method to check if the message code should be ignored.</td> </tr> <tr> +<td><a href="#ImportsChecker.__isModuleBanned">__isModuleBanned</a></td> +<td>Private method to check, if the given module name banned.</td> +</tr> +<tr> <td><a href="#ImportsChecker.__tidyImports">__tidyImports</a></td> <td>Private method to check various other import related topics.</td> </tr> @@ -211,6 +219,33 @@ reference to the node to be checked </dd> </dl> +<a NAME="ImportsChecker.__compileUnstructuredGlob" ID="ImportsChecker.__compileUnstructuredGlob"></a> +<h4>ImportsChecker.__compileUnstructuredGlob</h4> +<b>__compileUnstructuredGlob</b>(<i>module</i>) + +<p> + Private method to convert a pattern to a regex such that ".*" matches zero or + more modules. +</p> +<dl> + +<dt><i>module</i> (str)</dt> +<dd> +module pattern to be converted +</dd> +</dl> +<dl> +<dt>Return:</dt> +<dd> +compiled regex +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +re.regex object +</dd> +</dl> <a NAME="ImportsChecker.__error" ID="ImportsChecker.__error"></a> <h4>ImportsChecker.__error</h4> <b>__error</b>(<i>lineNumber, offset, code, *args</i>) @@ -316,6 +351,32 @@ bool </dd> </dl> +<a NAME="ImportsChecker.__isModuleBanned" ID="ImportsChecker.__isModuleBanned"></a> +<h4>ImportsChecker.__isModuleBanned</h4> +<b>__isModuleBanned</b>(<i>moduleName</i>) + +<p> + Private method to check, if the given module name banned. +</p> +<dl> + +<dt><i>moduleName</i> (str)</dt> +<dd> +module name to be checked +</dd> +</dl> +<dl> +<dt>Return:</dt> +<dd> +flag indicating a banned module +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +bool +</dd> +</dl> <a NAME="ImportsChecker.__tidyImports" ID="ImportsChecker.__tidyImports"></a> <h4>ImportsChecker.__tidyImports</h4> <b>__tidyImports</b>(<i></i>)