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

branch
eric7
changeset 10361
e6ff9a4f6ee5
parent 10360
9ffdb1490bd2
child 10362
cfa7034cccf6
diff -r 9ffdb1490bd2 -r e6ff9a4f6ee5 src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py	Wed Nov 29 18:07:53 2023 +0100
+++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py	Thu Nov 30 11:59:40 2023 +0100
@@ -132,10 +132,6 @@
         "Unnecessary list comprehension passed to {0}() prevents short-circuiting"
         " - rewrite as a generator"
     ),
-
-
-
-
     ## Dictionaries with sorted keys
     "M201": QCoreApplication.translate(
         "MiscellaneousChecker",
@@ -599,6 +595,19 @@
         "prefer implied line continuation inside parentheses, "
         "brackets and braces as opposed to a backslash",
     ),
+    ## implicitly concatenated strings
+    "M851": QCoreApplication.translate(
+        "MiscellaneousChecker",
+        "implicitly concatenated string or bytes literals on one line",
+    ),
+    "M852": QCoreApplication.translate(
+        "MiscellaneousChecker",
+        "implicitly concatenated string or bytes literals over continuation line",
+    ),
+    "M853": QCoreApplication.translate(
+        "MiscellaneousChecker",
+        "explicitly concatenated string or bytes should be implicitly concatenated",
+    ),
     ## commented code
     "M891": QCoreApplication.translate(
         "MiscellaneousChecker",
@@ -607,9 +616,12 @@
 }
 
 _miscellaneousMessagesSampleArgs = {
+    ## Coding line
     "M102": ["enc42"],
+    ## Shadowed Builtins
     "M131": ["list"],
     "M132": ["list"],
+    ## Comprehensions
     "M185": ["list", "set"],
     "M186": ["list", "dict"],
     "M188": ["list"],
@@ -626,7 +638,9 @@
     "M197": ["list"],
     "M198": ["dict comprehension"],
     "M199": ["any"],
+    ## Dictionaries with sorted keys
     "M201": ["bar", "foo"],
+    ## Property
     "M210": [2],
     "M211": [1],
     "M212": [2],
@@ -635,6 +649,7 @@
     "M215": ["foo", "bar"],
     "M216": ["foo", "bar"],
     "M217": ["foo"],
+    ## Bugbear
     "M507": ["x"],
     "M513": ["Exception"],
     "M514": ["OSError, IOError", " as err", "OSError"],
@@ -645,14 +660,18 @@
     "M533": ["foo"],
     "M534": ["split", "maxsplit"],
     "M535": ["foo"],
+    ## Format Strings
     "M601": ["%s"],
     "M621": [5],
     "M622": ["foo"],
     "M631": [5],
     "M632": ["foo"],
+    ## Future statements
     "M701": ["print_function, unicode_literals", "print_function"],
     "M702": ["print_function, unicode_literals"],
+    ## Gettext
     "M711": ["lgettext"],
+    ## Mutable Defaults
     "M821": ["Dict"],
     "M822": ["Call"],
     "M823": ["dict"],

eric ide

mercurial