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

branch
eric7
changeset 9595
2bd590c40309
parent 9576
be9f8e7e42e0
child 9653
e67609152c5e
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py	Thu Dec 08 16:03:38 2022 +0100
+++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py	Thu Dec 08 18:03:42 2022 +0100
@@ -263,8 +263,8 @@
     ),
     "M515": QCoreApplication.translate(
         "MiscellaneousChecker",
-        "Pointless comparison. This comparison does nothing but waste CPU instructions."
-        " Either prepend 'assert' or remove it.",
+        "Result of comparison is not used. This line doesn't do anything. Did you"
+        " intend to prepend it with assert?",
     ),
     "M516": QCoreApplication.translate(
         "MiscellaneousChecker",
@@ -279,7 +279,8 @@
     ),
     "M518": QCoreApplication.translate(
         "MiscellaneousChecker",
-        "Found useless expression. Either assign it to a variable or remove it.",
+        "Found useless expression. Consider either assigning it to a variable or"
+        " removing it.",
     ),
     "M519": QCoreApplication.translate(
         "MiscellaneousChecker",
@@ -309,14 +310,26 @@
     "M524": QCoreApplication.translate(
         "MiscellaneousChecker",
         "{0} is an abstract base class, but it has no abstract methods. Remember to"
-        " use '@abstractmethod', '@abstractclassmethod' and/or '@abstractproperty'"
-        " decorators.",
+        " use the @abstractmethod decorator, potentially in conjunction with"
+        " @classmethod, @property and/or @staticmethod.",
     ),
     "M525": QCoreApplication.translate(
         "MiscellaneousChecker",
         "Exception '{0}' has been caught multiple times. Only the first except will be"
         " considered and all other except catches can be safely removed.",
     ),
+    "M526": QCoreApplication.translate(
+        "MiscellaneousChecker",
+        "Star-arg unpacking after a keyword argument is strongly discouraged,"
+        " because it only works when the keyword parameter is declared after all"
+        " parameters supplied by the unpacked sequence, and this change of ordering can"
+        " surprise and mislead readers.",
+    ),
+    "M527": QCoreApplication.translate(
+        "MiscellaneousChecker",
+        "{0} is an empty method in an abstract base class, but has no abstract"
+        " decorator. Consider adding @abstractmethod.",
+    ),
     "M581": QCoreApplication.translate("MiscellaneousChecker", "unncessary f-string"),
     "M582": QCoreApplication.translate(
         "MiscellaneousChecker",
@@ -448,6 +461,7 @@
     "M523": ["x"],
     "M524": ["foobar"],
     "M525": ["OSError"],
+    "M527": ["foo"],
     "M601": ["%s"],
     "M621": [5],
     "M622": ["foo"],

eric ide

mercurial