Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py

changeset 6235
0e6a395ecfe8
parent 6188
5a6ae3be31e6
child 6264
04a671fa4adb
--- a/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py	Thu Apr 12 19:12:36 2018 +0200
+++ b/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py	Fri Apr 13 18:50:57 2018 +0200
@@ -103,6 +103,8 @@
                     comment = comment[:endPos]
             flags = [f.strip() for f in comment.split()
                      if (f.startswith("__") and f.endswith("__"))]
+            flags += [f.strip().lower() for f in comment.split()
+                      if f in ("noqa", "NOQA")]
     return flags
 
 
@@ -119,7 +121,8 @@
     """
     if lineFlags:
         
-        if "__IGNORE_WARNING__" in lineFlags:
+        if "__IGNORE_WARNING__" in lineFlags or \
+           "noqa" in lineFlags:
             # ignore all warning codes
             return True
         

eric ide

mercurial