eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py

changeset 7247
bf9379f964f3
parent 7246
c32a350d2414
child 7256
4ef3b78ebb4e
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py	Wed Sep 18 20:25:52 2019 +0200
+++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py	Thu Sep 19 19:14:34 2019 +0200
@@ -254,8 +254,8 @@
     @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, 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)
     @return tuple of statistics (dict) and list of results (tuple for each
@@ -266,8 +266,8 @@
     """
     (excludeMessages, includeMessages, repeatMessages, fixCodes, noFixCodes,
      fixIssues, maxLineLength, maxDocLineLength, blankLines, hangClosing,
-     docType, codeComplexityArgs, miscellaneousArgs, errors, eol, encoding,
-     backup) = args
+     docType, codeComplexityArgs, miscellaneousArgs, annotationArgs, errors,
+     eol, encoding, backup) = args
     
     stats = {}
 
@@ -348,7 +348,8 @@
             # annotations are supported from Python 3.5 on
             from AnnotationsChecker import AnnotationsChecker
             annotationsChecker = AnnotationsChecker(
-                source, filename, select, ignore, [], repeatMessages)
+                source, filename, select, ignore, [], repeatMessages,
+                annotationArgs)
             annotationsChecker.run()
             stats.update(annotationsChecker.counters)
             errors += annotationsChecker.errors

eric ide

mercurial