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

branch
eric7
changeset 11147
dee6e106b4d3
parent 11090
f5f5f5803935
child 11148
15e30f0c76a8
diff -r 59e04f7003e9 -r dee6e106b4d3 src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Logging/translations.py
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Logging/translations.py	Sun Feb 23 12:42:47 2025 +0100
+++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Logging/translations.py	Mon Feb 24 15:11:18 2025 +0100
@@ -13,79 +13,79 @@
 
 _loggingMessages = {
     ## Logging
-    "L101": QCoreApplication.translate(
+    "L-101": QCoreApplication.translate(
         "LoggingChecker",
         "use logging.getLogger() to instantiate loggers",
     ),
-    "L102": QCoreApplication.translate(
+    "L-102": QCoreApplication.translate(
         "LoggingChecker",
         "use '__name__' with getLogger()",
     ),
-    "L103": QCoreApplication.translate(
+    "L-103": QCoreApplication.translate(
         "LoggingChecker",
         "extra key {0} clashes with LogRecord attribute",
     ),
-    "L104": QCoreApplication.translate(
+    "L-104": QCoreApplication.translate(
         "LoggingChecker",
         "avoid exception() outside of exception handlers",
     ),
-    "L105": QCoreApplication.translate(
+    "L-105": QCoreApplication.translate(
         "LoggingChecker",
         ".exception(...) should be used instead of .error(..., exc_info=True)",
     ),
-    "L106": QCoreApplication.translate(
+    "L-106": QCoreApplication.translate(
         "LoggingChecker",
         "redundant exc_info argument for exception() should be removed",
     ),
-    "L107": QCoreApplication.translate(
+    "L-107": QCoreApplication.translate(
         "LoggingChecker",
         "use error() instead of exception() with exc_info=False",
     ),
-    "L108": QCoreApplication.translate(
+    "L-108": QCoreApplication.translate(
         "LoggingChecker",
         "warn() is deprecated, use warning() instead",
     ),
-    "L109": QCoreApplication.translate(
+    "L-109": QCoreApplication.translate(
         "LoggingChecker",
         "WARN is undocumented, use WARNING instead",
     ),
-    "L110": QCoreApplication.translate(
+    "L-110": QCoreApplication.translate(
         "LoggingChecker",
         "exception() does not take an exception",
     ),
-    "L111a": QCoreApplication.translate(
+    "L-111a": QCoreApplication.translate(
         "LoggingChecker",
         "avoid pre-formatting log messages using f-string",
     ),
-    "L111b": QCoreApplication.translate(
+    "L-111b": QCoreApplication.translate(
         "LoggingChecker",
         "avoid pre-formatting log messages using string.format()",
     ),
-    "L111c": QCoreApplication.translate(
+    "L-111c": QCoreApplication.translate(
         "LoggingChecker",
         "avoid pre-formatting log messages using '%'",  # noqa: M601
     ),
-    "L111d": QCoreApplication.translate(
+    "L-111d": QCoreApplication.translate(
         "LoggingChecker",
         "avoid pre-formatting log messages using '+'",
     ),
-    "L112": QCoreApplication.translate(
+    "L-112": QCoreApplication.translate(
         "LoggingChecker",
         "formatting error: {0} {1} placeholder(s) but {2} argument(s)",
     ),
-    "L113a": QCoreApplication.translate(
+    "L-113a": QCoreApplication.translate(
         "LoggingChecker",
         "formatting error: missing key(s): {0}",
     ),
-    "L113b": QCoreApplication.translate(
+    "L-113b": QCoreApplication.translate(
         "LoggingChecker",
         "formatting error: unreferenced key(s): {0}",
     ),
-    "L114": QCoreApplication.translate(
+    "L-114": QCoreApplication.translate(
         "LoggingChecker",
         "avoid exc_info=True outside of exception handlers",
     ),
-    "L115": QCoreApplication.translate(
+    "L-115": QCoreApplication.translate(
         "LoggingChecker",
         "avoid logging calls on the root logger",
     ),
@@ -93,8 +93,8 @@
 
 _loggingMessagesSampleArgs = {
     ## Logging
-    "L103": ["'pathname'"],
-    "L112": [3, "'%'", 2],  # noqa: M601
-    "L113a": ["'foo', 'bar'"],
-    "L113b": ["'foo', 'bar'"],
+    "L-103": ["'pathname'"],
+    "L-112": [3, "'%'", 2],  # noqa: M601
+    "L-113a": ["'foo', 'bar'"],
+    "L-113b": ["'foo', 'bar'"],
 }

eric ide

mercurial