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

branch
eric7
changeset 10996
a3dc181d14e1
parent 10638
12558008c269
child 11090
f5f5f5803935
diff -r f94a27bbf6c4 -r a3dc181d14e1 src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/translations.py
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/translations.py	Mon Oct 21 16:21:24 2024 +0200
+++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/translations.py	Mon Oct 21 19:31:11 2024 +0200
@@ -47,10 +47,10 @@
     "S112": QCoreApplication.translate("Security", "Try, Except, Continue detected."),
     "S113": QCoreApplication.translate("Security", "'contextlib.suppress()' detected."),
     # request without timeout
-    "S114.1": QCoreApplication.translate("Security", "Requests call without timeout."),
+    "S114.1": QCoreApplication.translate("Security", "Call to {0} without timeout."),
     "S114.2": QCoreApplication.translate(
         "Security",
-        "Requests call with timeout set to None.",
+        "Call to {0} with timeout set to None.",
     ),
     # flask app
     "S201": QCoreApplication.translate(
@@ -389,6 +389,15 @@
         "Security",
         "Use of insecure logging.config.listen() detected.",
     ),
+    # Trojan Source
+    "S613": QCoreApplication.translate(
+        "Security",
+        "The Python source file contains bidirectional control characters ({0}).",
+    ),
+    # PyTorch unsafe load or save
+    "S614": QCoreApplication.translate(
+        "Security", "Use of unsafe PyTorch load or save."
+    ),
     # Jinja2 templates
     "S701.1": QCoreApplication.translate(
         "Security",
@@ -428,6 +437,8 @@
     "S105": ["password"],
     "S106": ["password"],
     "S107": ["password"],
+    "S114.1": ["requests"],
+    "S114.2": ["httpx"],
     "S202.1": ["members_filter(tar)"],
     "S202.2": ["tar"],
     "S304": ["Crypto.Cipher.DES"],
@@ -454,6 +465,7 @@
     "S413": ["Crypto.Cipher"],
     "S505": ["RSA", 2048],
     "S609": ["os.system"],
+    "S613": [repr("\u202E")],
     "S801": ["A1B2C3D4E5F6G7H8I9J0"],  # secok
     "S802": ["aA1bB2cC3dD4/eE5fF6gG7+hH8iI9jJ0=kKlLM+="],  # secok
 }

eric ide

mercurial