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

branch
eric7
changeset 10069
435cc5875135
parent 9653
e67609152c5e
child 10169
0f70a4ef4592
equal deleted inserted replaced
10068:7febcdccb2a1 10069:435cc5875135
70 if p_x > 0: 70 if p_x > 0:
71 entropy += -p_x * math.log(p_x, 2) 71 entropy += -p_x * math.log(p_x, 2)
72 return entropy 72 return entropy
73 73
74 74
75 def checkHardcodedAwsKey(reportError, context, config): 75 def checkHardcodedAwsKey(reportError, context, config): # noqa: U100
76 """ 76 """
77 Function to check for potentially hardcoded AWS passwords. 77 Function to check for potentially hardcoded AWS passwords.
78 78
79 @param reportError function to be used to report errors 79 @param reportError function to be used to report errors
80 @type func 80 @type func

eric ide

mercurial