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 |