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

branch
eric7
changeset 10069
435cc5875135
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10068:7febcdccb2a1 10069:435cc5875135
50 if isinstance(node, ast.keyword): 50 if isinstance(node, ast.keyword):
51 kwargs[node.arg] = node.value 51 kwargs[node.arg] = node.value
52 return kwargs 52 return kwargs
53 53
54 54
55 def checkDjangoExtraUsed(reportError, context, config): 55 def checkDjangoExtraUsed(reportError, context, config): # noqa: U100
56 """ 56 """
57 Function to check for potential SQL injection on extra function. 57 Function to check for potential SQL injection on extra function.
58 58
59 @param reportError function to be used to report errors 59 @param reportError function to be used to report errors
60 @type func 60 @type func
108 reportError( 108 reportError(
109 context.node.lineno - 1, context.node.col_offset, "S610", "M", "M" 109 context.node.lineno - 1, context.node.col_offset, "S610", "M", "M"
110 ) 110 )
111 111
112 112
113 def checkDjangoRawSqlUsed(reportError, context, config): 113 def checkDjangoRawSqlUsed(reportError, context, config): # noqa: U100
114 """ 114 """
115 Function to check for potential SQL injection on RawSQL function. 115 Function to check for potential SQL injection on RawSQL function.
116 116
117 @param reportError function to be used to report errors 117 @param reportError function to be used to report errors
118 @type func 118 @type func

eric ide

mercurial