Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py

branch
Py2 comp.
changeset 3515
1b8381afe38f
parent 3456
96232974dcdb
child 3549
96ebf42cd960
--- a/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py	Sun Apr 13 15:45:57 2014 +0200
+++ b/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py	Tue Apr 15 22:41:08 2014 +0200
@@ -96,8 +96,8 @@
         maxLineLength (int), hangClosing (bool), docType (str), errors
         (list of str), eol (str), encoding (str))
     @return tuple of stats (dict) and results (tuple for each found violation
-        of style (tuple of lineno (int), position (int), text (str), fixed
-            (bool), autofixing (bool), fixedMsg (str)))
+        of style (tuple of lineno (int), position (int), text (str), ignored
+            (bool), fixed (bool), autofixing (bool), fixedMsg (str)))
     """
     excludeMessages, includeMessages, \
         repeatMessages, fixCodes, noFixCodes, fixIssues, maxLineLength, \
@@ -166,10 +166,12 @@
                     itm = [lineno, position, text]
                     deferredFixes[id_] = itm
                 else:
-                    itm = [lineno, position, text, res == 1, True, msg]
+                    itm = [lineno, position, text, False, res == 1, True, msg]
             else:
-                itm = [lineno, position, text, False, False, '']
+                itm = [lineno, position, text, False, False, False, '']
             results.append(itm)
+        else:
+            results.append([lineno, position, text, True, False, False, ''])
     
     if fixer:
         deferredResults = fixer.finalize()

eric ide

mercurial