eric7/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py

branch
eric7
changeset 8801
8fbb21be8579
parent 8790
548df4df8256
child 8881
54e42bc2437a
diff -r d0d2fa9dbbb7 -r 8fbb21be8579 eric7/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py
--- a/eric7/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py	Wed Dec 01 18:03:11 2021 +0100
+++ b/eric7/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py	Wed Dec 01 20:09:57 2021 +0100
@@ -177,10 +177,11 @@
     @param args arguments used by the codeStyleCheck function (list of
         excludeMessages, includeMessages, repeatMessages, fixCodes,
         noFixCodes, fixIssues, maxLineLength, maxDocLineLength, blankLines,
-        hangClosing, docType, codeComplexityArgs, miscellaneousArgs, errors,
-        eol, encoding, backup)
+        hangClosing, docType, codeComplexityArgs, miscellaneousArgs,
+        annotationArgs, securityArgs, importsArgs, errors, eol, encoding,
+        backup)
     @type list of (str, str, bool, str, str, bool, int, list of (int, int),
-        bool, str, dict, dict, list of str, str, str, bool)
+        bool, str, dict, dict, dict, dict, list of str, str, str, bool)
     @return tuple of statistics (dict) and list of results (tuple for each
         found violation of style (lineno, position, text, ignored, fixed,
         autofixing, fixedMsg))
@@ -338,9 +339,10 @@
         excludeMessages, includeMessages, repeatMessages, fixCodes,
         noFixCodes, fixIssues, maxLineLength, maxDocLineLength, blankLines,
         hangClosing, docType, codeComplexityArgs, miscellaneousArgs,
-        annotationArgs, securityArgs, errors, eol, encoding, backup)
+        annotationArgs, securityArgs, importsArgs, errors, eol, encoding,
+        backup)
     @type list of (str, str, bool, str, str, bool, int, list of (int, int),
-        bool, str, dict, dict, dict, list of str, str, str, bool)
+        bool, str, dict, dict, dict, dict, list of str, str, str, bool)
     @return tuple of statistics data and list of result dictionaries with
         keys:
         <ul>
@@ -360,7 +362,7 @@
     (excludeMessages, includeMessages, repeatMessages, fixCodes, noFixCodes,
      fixIssues, maxLineLength, maxDocLineLength, blankLines, hangClosing,
      docType, codeComplexityArgs, miscellaneousArgs, annotationArgs,
-     securityArgs, errors, eol, encoding, backup) = args
+     securityArgs, importsArgs, errors, eol, encoding, backup) = args
     
     stats = {}
 
@@ -468,8 +470,8 @@
             
             # check import statements
             importsChecker = ImportsChecker(
-                source, filename, tree, select, ignore, [], repeatMessages, {})
-            # TODO: add arguments
+                source, filename, tree, select, ignore, [], repeatMessages,
+                importsArgs)
             importsChecker.run()
             stats.update(importsChecker.counters)
             errors += importsChecker.errors

eric ide

mercurial