Plugins/CheckerPlugins/CodeStyleChecker/translations.py

changeset 6184
789e88d94899
parent 6183
29384109306c
child 6246
fe07a9f16f23
diff -r 29384109306c -r 789e88d94899 Plugins/CheckerPlugins/CodeStyleChecker/translations.py
--- a/Plugins/CheckerPlugins/CodeStyleChecker/translations.py	Sun Mar 11 19:38:33 2018 +0100
+++ b/Plugins/CheckerPlugins/CodeStyleChecker/translations.py	Mon Mar 12 19:37:23 2018 +0100
@@ -519,6 +519,14 @@
         "MiscellaneousChecker",
         "'BaseException.message' has been deprecated as of Python 2.6 and is"
         " removed in Python 3 - use 'str(e)'"),
+    "M506": QCoreApplication.translate(
+        "MiscellaneousChecker",
+        "assigning to 'os.environ' does not clear the environment -"
+        " use 'os.environ.clear()'"),
+    "M507": QCoreApplication.translate(
+        "MiscellaneousChecker",
+        "loop control variable {0} not used within the loop body -"
+        " start the name with an underscore"),
     "M511": QCoreApplication.translate(
         "MiscellaneousChecker",
         "Python 3 does not include '.iter*' methods on dictionaries"),
@@ -528,6 +536,10 @@
     "M513": QCoreApplication.translate(
         "MiscellaneousChecker",
         "'.next()' does not exist in Python 3"),
+    "M514": QCoreApplication.translate(
+        "MiscellaneousChecker",
+        "'__metaclass__' does nothing on Python 3 -"
+        " use 'class MyClass(BaseClass, metaclass=...)'"),
     
     "M601": QCoreApplication.translate(
         "MiscellaneousChecker",
@@ -792,6 +804,7 @@
     "M132": ["list"],
     "M198": ["sorted"],
     "M201": ["bar", "foo"],
+    "M507": ["x"],
     "M601": ["%s"],
     "M621": [5],
     "M622": ["foo"],

eric ide

mercurial