src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py

branch
eric7
changeset 10884
2be906d60ffb
parent 10639
757bfe32983f
child 10907
c424150d2ac8
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py	Fri Aug 02 19:24:32 2024 +0200
+++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py	Sat Aug 03 11:01:25 2024 +0200
@@ -131,44 +131,48 @@
         "unnecessary list comprehension passed to {0}() prevents short-circuiting"
         " - rewrite as a generator",
     ),
+    "M200": QCoreApplication.translate(
+        "MiscellaneousChecker",
+        "unnecessary {0} comprehension - rewrite using dict.fromkeys()"
+    ),
     ## Dictionaries with sorted keys
-    "M201": QCoreApplication.translate(
+    "M251": QCoreApplication.translate(
         "MiscellaneousChecker",
         "sort keys - '{0}' should be before '{1}'",
     ),
     ## Property
-    "M210": QCoreApplication.translate(
+    "M260": QCoreApplication.translate(
         "MiscellaneousChecker",
         "the number of arguments for property getter method is wrong"
         " (should be 1 instead of {0})",
     ),
-    "M211": QCoreApplication.translate(
+    "M261": QCoreApplication.translate(
         "MiscellaneousChecker",
         "the number of arguments for property setter method is wrong"
         " (should be 2 instead of {0})",
     ),
-    "M212": QCoreApplication.translate(
+    "M262": QCoreApplication.translate(
         "MiscellaneousChecker",
         "the number of arguments for property deleter method is wrong"
         " (should be 1 instead of {0})",
     ),
-    "M213": QCoreApplication.translate(
+    "M263": QCoreApplication.translate(
         "MiscellaneousChecker",
         "the name of the setter method is wrong (should be '{0}' instead of '{1}')",
     ),
-    "M214": QCoreApplication.translate(
+    "M264": QCoreApplication.translate(
         "MiscellaneousChecker",
         "the name of the deleter method is wrong (should be '{0}' instead of '{1}')",
     ),
-    "M215": QCoreApplication.translate(
+    "M265": QCoreApplication.translate(
         "MiscellaneousChecker",
         "the name of the setter decorator is wrong (should be '{0}' instead of '{1}')",
     ),
-    "M216": QCoreApplication.translate(
+    "M266": QCoreApplication.translate(
         "MiscellaneousChecker",
         "the name of the deleter decorator is wrong (should be '{0}' instead of '{1}')",
     ),
-    "M217": QCoreApplication.translate(
+    "M267": QCoreApplication.translate(
         "MiscellaneousChecker",
         "multiple decorators were used to declare property '{0}'",
     ),
@@ -629,17 +633,18 @@
     "M197": ["list"],
     "M198": ["dict comprehension"],
     "M199": ["any"],
+    "M200": ["dict"],
     ## Dictionaries with sorted keys
-    "M201": ["bar", "foo"],
+    "M251": ["bar", "foo"],
     ## Property
-    "M210": [2],
-    "M211": [1],
-    "M212": [2],
-    "M213": ["foo", "bar"],
-    "M214": ["foo", "bar"],
-    "M215": ["foo", "bar"],
-    "M216": ["foo", "bar"],
-    "M217": ["foo"],
+    "M260": [2],
+    "M261": [1],
+    "M262": [2],
+    "M263": ["foo", "bar"],
+    "M264": ["foo", "bar"],
+    "M265": ["foo", "bar"],
+    "M266": ["foo", "bar"],
+    "M267": ["foo"],
     ## Bugbear
     "M507": ["x"],
     "M513": ["Exception"],

eric ide

mercurial