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

branch
eric7
changeset 10069
435cc5875135
parent 9653
e67609152c5e
child 10169
0f70a4ef4592
equal deleted inserted replaced
10068:7febcdccb2a1 10069:435cc5875135
43 (checkHardcodedPasswordAsDefault, ("S107",)), 43 (checkHardcodedPasswordAsDefault, ("S107",)),
44 ], 44 ],
45 } 45 }
46 46
47 47
48 def checkHardcodedPasswordAsString(reportError, context, config): 48 def checkHardcodedPasswordAsString(reportError, context, config): # noqa: U100
49 """ 49 """
50 Function to check for use of hardcoded password strings. 50 Function to check for use of hardcoded password strings.
51 51
52 @param reportError function to be used to report errors 52 @param reportError function to be used to report errors
53 @type func 53 @type func
100 "M", 100 "M",
101 comp.comparators[0].s, 101 comp.comparators[0].s,
102 ) 102 )
103 103
104 104
105 def checkHardcodedPasswordAsFunctionArg(reportError, context, config): 105 def checkHardcodedPasswordAsFunctionArg(reportError, context, config): # noqa: U100
106 """ 106 """
107 Function to check for use of hard-coded password function arguments. 107 Function to check for use of hard-coded password function arguments.
108 108
109 @param reportError function to be used to report errors 109 @param reportError function to be used to report errors
110 @type func 110 @type func
124 "M", 124 "M",
125 kw.value.s, 125 kw.value.s,
126 ) 126 )
127 127
128 128
129 def checkHardcodedPasswordAsDefault(reportError, context, config): 129 def checkHardcodedPasswordAsDefault(reportError, context, config): # noqa: U100
130 """ 130 """
131 Function to check for use of hard-coded password argument defaults. 131 Function to check for use of hard-coded password argument defaults.
132 132
133 @param reportError function to be used to report errors 133 @param reportError function to be used to report errors
134 @type func 134 @type func

eric ide

mercurial