src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/generalHardcodedPassword.py

branch
eric7
changeset 10683
779cda568acb
parent 10439
21c28b0f9e41
child 11090
f5f5f5803935
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/generalHardcodedPassword.py	Tue Apr 16 15:47:11 2024 +0200
+++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/generalHardcodedPassword.py	Sat Apr 20 18:01:36 2024 +0200
@@ -45,7 +45,7 @@
     }
 
 
-def checkHardcodedPasswordAsString(reportError, context, config):  # noqa: U100
+def checkHardcodedPasswordAsString(reportError, context, _config):
     """
     Function to check for use of hardcoded password strings.
 
@@ -53,7 +53,7 @@
     @type func
     @param context security context object
     @type SecurityContext
-    @param config dictionary with configuration data
+    @param _config dictionary with configuration data (unused)
     @type dict
     """
     node = context.node
@@ -104,7 +104,7 @@
             )
 
 
-def checkHardcodedPasswordAsFunctionArg(reportError, context, config):  # noqa: U100
+def checkHardcodedPasswordAsFunctionArg(reportError, context, _config):
     """
     Function to check for use of hard-coded password function arguments.
 
@@ -112,7 +112,7 @@
     @type func
     @param context security context object
     @type SecurityContext
-    @param config dictionary with configuration data
+    @param _config dictionary with configuration data (unused)
     @type dict
     """
     # looks for "function(candidate='some_string')"
@@ -128,7 +128,7 @@
             )
 
 
-def checkHardcodedPasswordAsDefault(reportError, context, config):  # noqa: U100
+def checkHardcodedPasswordAsDefault(reportError, context, _config):
     """
     Function to check for use of hard-coded password argument defaults.
 
@@ -136,7 +136,7 @@
     @type func
     @param context security context object
     @type SecurityContext
-    @param config dictionary with configuration data
+    @param _config dictionary with configuration data (unused)
     @type dict
     """
     # looks for "def function(candidate='some_string')"

eric ide

mercurial