Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py

changeset 6786
701b511ba8f5
parent 6645
ad476851d7e0
child 6789
6bafe4f7d5f0
--- a/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py	Mon Feb 18 19:14:05 2019 +0100
+++ b/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py	Tue Feb 19 18:16:45 2019 +0100
@@ -146,9 +146,9 @@
     @type str
     @param args arguments used by the codeStyleCheck function (list of
         excludeMessages, includeMessages, repeatMessages, fixCodes,
-        noFixCodes, fixIssues, maxLineLength, blankLines, hangClosing,
-        docType, codeComplexityArgs, miscellaneousArgs, errors, eol,
-        encoding, backup)
+        noFixCodes, fixIssues, maxLineLength, maxDocLineLength, blankLines,
+        hangClosing, docType, codeComplexityArgs, miscellaneousArgs, 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
@@ -253,9 +253,9 @@
     @type str
     @param args arguments used by the codeStyleCheck function (list of
         excludeMessages, includeMessages, repeatMessages, fixCodes,
-        noFixCodes, fixIssues, maxLineLength, blankLines, hangClosing,
-        docType, codeComplexityArgs, miscellaneousArgs, errors, eol,
-        encoding, backup)
+        noFixCodes, fixIssues, maxLineLength, maxDocLineLength, blankLines,
+        hangClosing, docType, codeComplexityArgs, miscellaneousArgs, 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
@@ -265,7 +265,7 @@
         str))
     """
     (excludeMessages, includeMessages, repeatMessages, fixCodes, noFixCodes,
-     fixIssues, maxLineLength, blankLines, hangClosing, docType,
+     fixIssues, maxLineLength, maxDocLineLength, blankLines, hangClosing, docType,
      codeComplexityArgs, miscellaneousArgs, errors, eol, encoding,
      backup) = args
     
@@ -313,6 +313,7 @@
             select=select,
             ignore=ignore,
             max_line_length=maxLineLength,
+            max_doc_length=maxDocLineLength,
             hang_closing=hangClosing,
         )
         report = styleGuide.check_files([filename])
@@ -322,7 +323,7 @@
         # check documentation style
         docStyleChecker = DocStyleChecker(
             source, filename, select, ignore, [], repeatMessages,
-            maxLineLength=maxLineLength, docType=docType)
+            maxLineLength=maxDocLineLength, docType=docType)
         docStyleChecker.run()
         stats.update(docStyleChecker.counters)
         errors += docStyleChecker.errors

eric ide

mercurial