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 |
42 @param config dictionary with configuration data |
43 @type dict |
43 @type dict |
44 """ |
44 """ |
45 if context.isModuleImportedLike('flask'): |
45 if ( |
46 if context.callFunctionNameQual.endswith('.run'): |
46 context.isModuleImportedLike('flask') and |
47 if context.checkCallArgValue('debug', 'True'): |
47 context.callFunctionNameQual.endswith('.run') and |
48 reportError( |
48 context.checkCallArgValue('debug', 'True') |
49 context.node.lineno - 1, |
49 ): |
50 context.node.col_offset, |
50 reportError( |
51 "S201", |
51 context.node.lineno - 1, |
52 "L", |
52 context.node.col_offset, |
53 "M" |
53 "S201", |
54 ) |
54 "L", |
|
55 "M" |
|
56 ) |