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 |