src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/tarfileUnsafeMembers.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 "Call": [ 28 "Call": [
29 (checkTarfileUnsafeMembers, ("S202",)), 29 (checkTarfileUnsafeMembers, ("S-202",)),
30 ], 30 ],
31 } 31 }
32 32
33 33
34 def _getMembersValue(context): 34 def _getMembersValue(context):
93 members = _getMembersValue(context) 93 members = _getMembersValue(context)
94 if "Function" in members: 94 if "Function" in members:
95 reportError( 95 reportError(
96 context.node.lineno - 1, 96 context.node.lineno - 1,
97 context.node.col_offset, 97 context.node.col_offset,
98 "S202.1", 98 "S-202.1",
99 "L", 99 "L",
100 "L", 100 "L",
101 str(members), 101 str(members),
102 ) 102 )
103 else: 103 else:
104 reportError( 104 reportError(
105 context.node.lineno - 1, 105 context.node.lineno - 1,
106 context.node.col_offset, 106 context.node.col_offset,
107 "S202.2", 107 "S-202.2",
108 "M", 108 "M",
109 "M", 109 "M",
110 str(members), 110 str(members),
111 ) 111 )
112 else: 112 else:
113 reportError( 113 reportError(
114 context.node.lineno - 1, context.node.col_offset, "S202.3", "H", "H" 114 context.node.lineno - 1, context.node.col_offset, "S-202.3", "H", "H"
115 ) 115 )

eric ide

mercurial