src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/pytorchLoadSave.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 (checkPytorchLoadSave, ("S614",)), 29 (checkPytorchLoadSave, ("S-614",)),
30 ], 30 ],
31 } 31 }
32 32
33 33
34 def checkPytorchLoadSave(reportError, context, _config): 34 def checkPytorchLoadSave(reportError, context, _config):
61 ] 61 ]
62 ): 62 ):
63 reportError( 63 reportError(
64 context.node.lineno - 1, 64 context.node.lineno - 1,
65 context.node.col_offset, 65 context.node.col_offset,
66 "S614", 66 "S-614",
67 "M", 67 "M",
68 "H", 68 "H",
69 ) 69 )

eric ide

mercurial