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 "Str": [ | 28 "Str": [ |
29 (checkBindAllInterfaces, ("S104",)), | 29 (checkBindAllInterfaces, ("S-104",)), |
30 ], | 30 ], |
31 } | 31 } |
32 | 32 |
33 | 33 |
34 def checkBindAllInterfaces(reportError, context, _config): | 34 def checkBindAllInterfaces(reportError, context, _config): |
44 """ | 44 """ |
45 if context.stringVal == "0.0.0.0": # secok | 45 if context.stringVal == "0.0.0.0": # secok |
46 reportError( | 46 reportError( |
47 context.node.lineno - 1, | 47 context.node.lineno - 1, |
48 context.node.col_offset, | 48 context.node.col_offset, |
49 "S104", | 49 "S-104", |
50 "M", | 50 "M", |
51 "M", | 51 "M", |
52 ) | 52 ) |