Plugins/CheckerPlugins/CodeStyleChecker/translations.py

changeset 5585
dab20c39f08c
parent 5509
d4c4763b46ee
child 5616
adcffadf4962
diff -r 9fce9cfcbfda -r dab20c39f08c Plugins/CheckerPlugins/CodeStyleChecker/translations.py
--- a/Plugins/CheckerPlugins/CodeStyleChecker/translations.py	Tue Mar 07 18:25:42 2017 +0100
+++ b/Plugins/CheckerPlugins/CodeStyleChecker/translations.py	Tue Mar 07 18:42:41 2017 +0100
@@ -441,6 +441,38 @@
     "M121": QCoreApplication.translate(
         "MiscellaneousChecker",
         "blind except: statement"),         # __IGNORE_WARNING__
+    "M131": QCoreApplication.translate(
+        "MiscellaneousChecker",
+        '"{0}" is a Python builtin and is being shadowed; '
+        'consider renaming the variable'),
+    "M132": QCoreApplication.translate(
+        "MiscellaneousChecker",
+        '"{0}" is used as an argument and thus shadows a '
+        'Python builtin; consider renaming the argument'),
+    "M191": QCoreApplication.translate(
+        "MiscellaneousChecker",
+        'unnecessary generator - rewrite as a list comprehension'),
+    "M192": QCoreApplication.translate(
+        "MiscellaneousChecker",
+        'unnecessary generator - rewrite as a set comprehension'),
+    "M193": QCoreApplication.translate(
+        "MiscellaneousChecker",
+        'unnecessary generator - rewrite as a dict comprehension'),
+    "M194": QCoreApplication.translate(
+        "MiscellaneousChecker",
+        'unnecessary list comprehension - rewrite as a set comprehension'),
+    "M195": QCoreApplication.translate(
+        "MiscellaneousChecker",
+        'unnecessary list comprehension - rewrite as a dict comprehension'),
+    "M196": QCoreApplication.translate(
+        "MiscellaneousChecker",
+        'unnecessary list literal - rewrite as a set literal'),
+    "M197": QCoreApplication.translate(
+        "MiscellaneousChecker",
+        'unnecessary list literal - rewrite as a dict literal'),
+    "M198": QCoreApplication.translate(
+        "MiscellaneousChecker",
+        'unnecessary list comprehension - "{0}" can take a generator'),
     "M601": QCoreApplication.translate(
         "MiscellaneousChecker",
         "found {0} formatter"),
@@ -667,7 +699,10 @@
     "C101": ["foo.bar", "42"],
     "C901": ["SyntaxError", "Invalid Syntax"],
     "M102": ["enc42"],
-    "M131": ["%s"],
+    "M131": ["list"],
+    "M132": ["list"],
+    "M198": ["sorted"],
+    "M601": ["%s"],
     "M621": [5],
     "M622": ["foo"],
     "M631": [5],

eric ide

mercurial