src/eric7/Documentation/Source/eric7.Plugins.CheckerPlugins.CodeStyleChecker.Complexity.ComplexityChecker.html

branch
eric7
changeset 10479
856476537696
parent 9209
b99e7fd55fd3
child 11150
73d80859079c
diff -r de9106c55c3d -r 856476537696 src/eric7/Documentation/Source/eric7.Plugins.CheckerPlugins.CodeStyleChecker.Complexity.ComplexityChecker.html
--- a/src/eric7/Documentation/Source/eric7.Plugins.CheckerPlugins.CodeStyleChecker.Complexity.ComplexityChecker.html	Thu Jan 04 17:16:15 2024 +0100
+++ b/src/eric7/Documentation/Source/eric7.Plugins.CheckerPlugins.CodeStyleChecker.Complexity.ComplexityChecker.html	Thu Jan 04 18:02:25 2024 +0100
@@ -7,19 +7,17 @@
 <body>
 <a NAME="top" ID="top"></a>
 <h1>eric7.Plugins.CheckerPlugins.CodeStyleChecker.Complexity.ComplexityChecker</h1>
-
 <p>
 Module implementing a checker for code complexity.
 </p>
+
 <h3>Global Attributes</h3>
-
 <table>
 <tr><td>None</td></tr>
 </table>
+
 <h3>Classes</h3>
-
 <table>
-
 <tr>
 <td><a href="#ComplexityChecker">ComplexityChecker</a></td>
 <td>Class implementing a checker for code complexity.</td>
@@ -29,35 +27,34 @@
 <td>Class calculating the number of AST nodes per line of code and the median nodes/line score.</td>
 </tr>
 </table>
+
 <h3>Functions</h3>
-
 <table>
 <tr><td>None</td></tr>
 </table>
+
 <hr />
 <hr />
 <a NAME="ComplexityChecker" ID="ComplexityChecker"></a>
 <h2>ComplexityChecker</h2>
-
 <p>
     Class implementing a checker for code complexity.
 </p>
+
 <h3>Derived from</h3>
 None
 <h3>Class Attributes</h3>
-
 <table>
 <tr><td>Codes</td></tr>
 </table>
+
 <h3>Class Methods</h3>
-
 <table>
 <tr><td>None</td></tr>
 </table>
+
 <h3>Methods</h3>
-
 <table>
-
 <tr>
 <td><a href="#ComplexityChecker.__init__">ComplexityChecker</a></td>
 <td>Constructor</td>
@@ -83,19 +80,20 @@
 <td>Public method to check the given source for code complexity.</td>
 </tr>
 </table>
+
 <h3>Static Methods</h3>
-
 <table>
 <tr><td>None</td></tr>
 </table>
 
+
 <a NAME="ComplexityChecker.__init__" ID="ComplexityChecker.__init__"></a>
 <h4>ComplexityChecker (Constructor)</h4>
 <b>ComplexityChecker</b>(<i>source, filename, tree, select, ignore, args</i>)
-
 <p>
         Constructor
 </p>
+
 <dl>
 
 <dt><i>source</i> (list of str)</dt>
@@ -126,7 +124,6 @@
 <a NAME="ComplexityChecker.__checkLineComplexity" ID="ComplexityChecker.__checkLineComplexity"></a>
 <h4>ComplexityChecker.__checkLineComplexity</h4>
 <b>__checkLineComplexity</b>(<i></i>)
-
 <p>
         Private method to check the complexity of a single line of code and
         the median line complexity of the source code.
@@ -135,20 +132,21 @@
         Complexity is defined as the number of AST nodes produced by a line
         of code.
 </p>
+
 <a NAME="ComplexityChecker.__checkMcCabeComplexity" ID="ComplexityChecker.__checkMcCabeComplexity"></a>
 <h4>ComplexityChecker.__checkMcCabeComplexity</h4>
 <b>__checkMcCabeComplexity</b>(<i></i>)
-
 <p>
         Private method to check the McCabe code complexity.
 </p>
+
 <a NAME="ComplexityChecker.__error" ID="ComplexityChecker.__error"></a>
 <h4>ComplexityChecker.__error</h4>
 <b>__error</b>(<i>lineNumber, offset, code, *args</i>)
-
 <p>
         Private method to record an issue.
 </p>
+
 <dl>
 
 <dt><i>lineNumber</i> (int)</dt>
@@ -171,10 +169,10 @@
 <a NAME="ComplexityChecker.__ignoreCode" ID="ComplexityChecker.__ignoreCode"></a>
 <h4>ComplexityChecker.__ignoreCode</h4>
 <b>__ignoreCode</b>(<i>code</i>)
-
 <p>
         Private method to check if the message code should be ignored.
 </p>
+
 <dl>
 
 <dt><i>code</i> (str)</dt>
@@ -197,36 +195,34 @@
 <a NAME="ComplexityChecker.run" ID="ComplexityChecker.run"></a>
 <h4>ComplexityChecker.run</h4>
 <b>run</b>(<i></i>)
-
 <p>
         Public method to check the given source for code complexity.
 </p>
+
 <div align="right"><a href="#top">Up</a></div>
 <hr />
 <hr />
 <a NAME="LineComplexityVisitor" ID="LineComplexityVisitor"></a>
 <h2>LineComplexityVisitor</h2>
-
 <p>
     Class calculating the number of AST nodes per line of code
     and the median nodes/line score.
 </p>
+
 <h3>Derived from</h3>
 ast.NodeVisitor
 <h3>Class Attributes</h3>
-
 <table>
 <tr><td>None</td></tr>
 </table>
+
 <h3>Class Methods</h3>
-
 <table>
 <tr><td>None</td></tr>
 </table>
+
 <h3>Methods</h3>
-
 <table>
-
 <tr>
 <td><a href="#LineComplexityVisitor.__init__">LineComplexityVisitor</a></td>
 <td>Constructor</td>
@@ -244,26 +240,27 @@
 <td>Public method to recursively visit all the nodes and add up the instructions.</td>
 </tr>
 </table>
+
 <h3>Static Methods</h3>
-
 <table>
 <tr><td>None</td></tr>
 </table>
 
+
 <a NAME="LineComplexityVisitor.__init__" ID="LineComplexityVisitor.__init__"></a>
 <h4>LineComplexityVisitor (Constructor)</h4>
 <b>LineComplexityVisitor</b>(<i></i>)
-
 <p>
         Constructor
 </p>
+
 <a NAME="LineComplexityVisitor.score" ID="LineComplexityVisitor.score"></a>
 <h4>LineComplexityVisitor.score</h4>
 <b>score</b>(<i></i>)
-
 <p>
         Public method to calculate the median.
 </p>
+
 <dl>
 <dt>Return:</dt>
 <dd>
@@ -279,10 +276,10 @@
 <a NAME="LineComplexityVisitor.sortedList" ID="LineComplexityVisitor.sortedList"></a>
 <h4>LineComplexityVisitor.sortedList</h4>
 <b>sortedList</b>(<i></i>)
-
 <p>
         Public method to get a sorted list of (line, nodes) tuples.
 </p>
+
 <dl>
 <dt>Return:</dt>
 <dd>
@@ -298,11 +295,11 @@
 <a NAME="LineComplexityVisitor.visit" ID="LineComplexityVisitor.visit"></a>
 <h4>LineComplexityVisitor.visit</h4>
 <b>visit</b>(<i>node</i>)
-
 <p>
         Public method to recursively visit all the nodes and add up the
         instructions.
 </p>
+
 <dl>
 
 <dt><i>node</i> (ast.AST)</dt>
@@ -312,4 +309,4 @@
 </dl>
 <div align="right"><a href="#top">Up</a></div>
 <hr />
-</body></html>
\ No newline at end of file
+</body></html>

eric ide

mercurial