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

branch
eric7
changeset 11147
dee6e106b4d3
parent 11090
f5f5f5803935
equal deleted inserted replaced
11146:59e04f7003e9 11147:dee6e106b4d3
24 list of codes 24 list of codes
25 @rtype dict 25 @rtype dict
26 """ 26 """
27 return { 27 return {
28 "Assert": [ 28 "Assert": [
29 (checkAssertUsed, ("S101",)), 29 (checkAssertUsed, ("S-101",)),
30 ], 30 ],
31 } 31 }
32 32
33 33
34 def checkAssertUsed(reportError, context, _config): 34 def checkAssertUsed(reportError, context, _config):
40 @param context security context object 40 @param context security context object
41 @type SecurityContext 41 @type SecurityContext
42 @param _config dictionary with configuration data (unused) 42 @param _config dictionary with configuration data (unused)
43 @type dict 43 @type dict
44 """ 44 """
45 reportError(context.node.lineno - 1, context.node.col_offset, "S101", "L", "H") 45 reportError(context.node.lineno - 1, context.node.col_offset, "S-101", "L", "H")

eric ide

mercurial