Plugins/CheckerPlugins/CodeStyleChecker/translations.py

changeset 5661
ae4f5cdc3d00
parent 5639
9ee960bceb51
child 5732
34041e56ec42
diff -r 4dabc5e36b18 -r ae4f5cdc3d00 Plugins/CheckerPlugins/CodeStyleChecker/translations.py
--- a/Plugins/CheckerPlugins/CodeStyleChecker/translations.py	Sat Mar 25 17:18:12 2017 +0100
+++ b/Plugins/CheckerPlugins/CodeStyleChecker/translations.py	Sat Mar 25 17:36:50 2017 +0100
@@ -419,11 +419,16 @@
         "NamingStyleChecker",
         "names 'l', 'O' and 'I' should be avoided"),
 
-    # McCabe messages
+    # Code complexity messages
     "C101": QCoreApplication.translate(
-        "McCabeChecker", "'{0}' is too complex ({1})"),
+        "ComplexityChecker", "'{0}' is too complex ({1})"),
+    "C111": QCoreApplication.translate(
+        "ComplexityChecker", "source code line is too complex ({0})"),
+    "C112": QCoreApplication.translate(
+        "ComplexityChecker",
+        "overall source code line complexity is too high ({0})"),
     "C901": QCoreApplication.translate(
-        "McCabeChecker", "{0}: {1}"),
+        "ComplexityChecker", "{0}: {1}"),
     
     # Messages of the Miscellaneous Checker
     "M101": QCoreApplication.translate(
@@ -700,6 +705,8 @@
     "D232": ["public"],
     "D901": ["SyntaxError", "Invalid Syntax"],
     "C101": ["foo.bar", "42"],
+    "C111": [42],
+    "C112": [12.0],
     "C901": ["SyntaxError", "Invalid Syntax"],
     "M102": ["enc42"],
     "M131": ["list"],

eric ide

mercurial