[ { "ruleId": "py/empty-except", "rule": { "id": "py/empty-except", "index": 19, "toolComponent": { "index": 11 } }, "message": { "text": "'except' clause does nothing but pass and there is no explanatory comment." }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "module_utils/network_lsr/argument_validator.py", "uriBaseId": "%SRCROOT%", "index": 0 }, "region": { "startLine": 273, "startColumn": 9, "endColumn": 26 } } } ], "partialFingerprints": { "primaryLocationLineHash": "66c86fb8fe376459:1", "primaryLocationStartColumnFingerprint": "0" } }, { "ruleId": "py/empty-except", "rule": { "id": "py/empty-except", "index": 19, "toolComponent": { "index": 11 } }, "message": { "text": "'except' clause does nothing but pass and there is no explanatory comment." }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "module_utils/network_lsr/argument_validator.py", "uriBaseId": "%SRCROOT%", "index": 0 }, "region": { "startLine": 338, "startColumn": 9, "endColumn": 26 } } } ], "partialFingerprints": { "primaryLocationLineHash": "28854fa906b257c:1", "primaryLocationStartColumnFingerprint": "0" } }, { "ruleId": "py/empty-except", "rule": { "id": "py/empty-except", "index": 19, "toolComponent": { "index": 11 } }, "message": { "text": "'except' clause does nothing but pass and there is no explanatory comment." }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "module_utils/network_lsr/argument_validator.py", "uriBaseId": "%SRCROOT%", "index": 0 }, "region": { "startLine": 376, "startColumn": 17, "endColumn": 34 } } } ], "partialFingerprints": { "primaryLocationLineHash": "b836c06fda770956:1", "primaryLocationStartColumnFingerprint": "0" } }, { "ruleId": "py/empty-except", "rule": { "id": "py/empty-except", "index": 19, "toolComponent": { "index": 11 } }, "message": { "text": "'except' clause does nothing but pass and there is no explanatory comment." }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "module_utils/network_lsr/argument_validator.py", "uriBaseId": "%SRCROOT%", "index": 0 }, "region": { "startLine": 381, "startColumn": 17, "endColumn": 34 } } } ], "partialFingerprints": { "primaryLocationLineHash": "462c968cce7ca3a2:1", "primaryLocationStartColumnFingerprint": "0" } }, { "ruleId": "py/empty-except", "rule": { "id": "py/empty-except", "index": 19, "toolComponent": { "index": 11 } }, "message": { "text": "'except' clause does nothing but pass and there is no explanatory comment." }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "module_utils/network_lsr/argument_validator.py", "uriBaseId": "%SRCROOT%", "index": 0 }, "region": { "startLine": 427, "startColumn": 9, "endColumn": 26 } } } ], "partialFingerprints": { "primaryLocationLineHash": "f0d503d8775a789a:1", "primaryLocationStartColumnFingerprint": "0" } }, { "ruleId": "py/empty-except", "rule": { "id": "py/empty-except", "index": 19, "toolComponent": { "index": 11 } }, "message": { "text": "'except' clause does nothing but pass and there is no explanatory comment." }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "module_utils/network_lsr/argument_validator.py", "uriBaseId": "%SRCROOT%", "index": 0 }, "region": { "startLine": 2667, "startColumn": 21, "endColumn": 38 } } } ], "partialFingerprints": { "primaryLocationLineHash": "a6b42ca678a94ed9:1", "primaryLocationStartColumnFingerprint": "0" } }, { "ruleId": "py/empty-except", "rule": { "id": "py/empty-except", "index": 19, "toolComponent": { "index": 11 } }, "message": { "text": "'except' clause does nothing but pass and there is no explanatory comment." }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "library/network_connections.py", "uriBaseId": "%SRCROOT%", "index": 1 }, "region": { "startLine": 820, "startColumn": 13, "endColumn": 30 } } } ], "partialFingerprints": { "primaryLocationLineHash": "5128a0a371548602:1", "primaryLocationStartColumnFingerprint": "0" } }, { "ruleId": "py/empty-except", "rule": { "id": "py/empty-except", "index": 19, "toolComponent": { "index": 11 } }, "message": { "text": "'except' clause does nothing but pass and there is no explanatory comment." }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "library/network_connections.py", "uriBaseId": "%SRCROOT%", "index": 1 }, "region": { "startLine": 826, "startColumn": 13, "endColumn": 30 } } } ], "partialFingerprints": { "primaryLocationLineHash": "4c59a739024cef97:1", "primaryLocationStartColumnFingerprint": "0" } }, { "ruleId": "py/empty-except", "rule": { "id": "py/empty-except", "index": 19, "toolComponent": { "index": 11 } }, "message": { "text": "'except' clause does nothing but pass and there is no explanatory comment." }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "library/network_connections.py", "uriBaseId": "%SRCROOT%", "index": 1 }, "region": { "startLine": 2552, "startColumn": 9, "endColumn": 26 } } } ], "partialFingerprints": { "primaryLocationLineHash": "534e1065a8fee772:1", "primaryLocationStartColumnFingerprint": "0" } }, { "ruleId": "py/mixed-returns", "rule": { "id": "py/mixed-returns", "index": 58, "toolComponent": { "index": 11 } }, "message": { "text": "Mixing implicit and explicit returns may indicate an error as implicit returns always return None." }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "module_utils/network_lsr/utils.py", "uriBaseId": "%SRCROOT%", "index": 2 }, "region": { "startLine": 332, "startColumn": 5, "endColumn": 39 } } } ], "partialFingerprints": { "primaryLocationLineHash": "3e3d2b39c6c334d5:1", "primaryLocationStartColumnFingerprint": "0" } }, { "ruleId": "py/mixed-returns", "rule": { "id": "py/mixed-returns", "index": 58, "toolComponent": { "index": 11 } }, "message": { "text": "Mixing implicit and explicit returns may indicate an error as implicit returns always return None." }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "module_utils/network_lsr/utils.py", "uriBaseId": "%SRCROOT%", "index": 2 }, "region": { "startLine": 344, "startColumn": 5, "endColumn": 43 } } } ], "partialFingerprints": { "primaryLocationLineHash": "743836c794dbde2f:1", "primaryLocationStartColumnFingerprint": "0" } }, { "ruleId": "py/import-and-import-from", "rule": { "id": "py/import-and-import-from", "index": 78, "toolComponent": { "index": 11 } }, "message": { "text": "Module 'unittest' is imported with both 'import' and 'import from'." }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "tests/unit/test_network_connections.py", "uriBaseId": "%SRCROOT%", "index": 3 }, "region": { "startLine": 9, "endColumn": 16 } } } ], "partialFingerprints": { "primaryLocationLineHash": "ca15ff83070a3cc5:1", "primaryLocationStartColumnFingerprint": "0" } }, { "ruleId": "py/import-and-import-from", "rule": { "id": "py/import-and-import-from", "index": 78, "toolComponent": { "index": 11 } }, "message": { "text": "Module 'network_lsr.argument_validator' is imported with both 'import' and 'import from'." }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "tests/unit/test_network_connections.py", "uriBaseId": "%SRCROOT%", "index": 3 }, "region": { "startLine": 23, "endColumn": 38 } } } ], "partialFingerprints": { "primaryLocationLineHash": "1a6c6feb590da63b:1", "primaryLocationStartColumnFingerprint": "0" } }, { "ruleId": "py/should-use-with", "rule": { "id": "py/should-use-with", "index": 129, "toolComponent": { "index": 11 } }, "message": { "text": "Instance of context-manager class [socket](1) is closed in a finally block. Consider using 'with' statement." }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "module_utils/network_lsr/ethtool.py", "uriBaseId": "%SRCROOT%", "index": 4 }, "region": { "startLine": 60, "startColumn": 9, "endColumn": 21 } } } ], "partialFingerprints": { "primaryLocationLineHash": "be410b5373077ed4:1", "primaryLocationStartColumnFingerprint": "0" }, "relatedLocations": [ { "id": 1, "physicalLocation": { "artifactLocation": { "uri": "file:/usr/lib64/python3.10/socket.py", "index": 5 }, "region": { "startLine": 214, "endColumn": 30 } }, "message": { "text": "socket" } } ] }, { "ruleId": "py/imprecise-assert", "rule": { "id": "py/imprecise-assert", "index": 139, "toolComponent": { "index": 11 } }, "message": { "text": "assertTrue(a == b) cannot provide an informative message. Using assertEqual(a, b) instead will give more informative messages." }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "tests/unit/test_network_connections.py", "uriBaseId": "%SRCROOT%", "index": 3 }, "region": { "startLine": 3464, "startColumn": 9, "endColumn": 68 } } } ], "partialFingerprints": { "primaryLocationLineHash": "7abde8a066a0fce6:1", "primaryLocationStartColumnFingerprint": "0" } }, { "ruleId": "py/imprecise-assert", "rule": { "id": "py/imprecise-assert", "index": 139, "toolComponent": { "index": 11 } }, "message": { "text": "assertTrue(a is b) cannot provide an informative message. Using assertIs(a, b) instead will give more informative messages." }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "tests/unit/test_network_connections.py", "uriBaseId": "%SRCROOT%", "index": 3 }, "region": { "startLine": 3472, "startColumn": 9, "endColumn": 66 } } } ], "partialFingerprints": { "primaryLocationLineHash": "3e9bac179dc2c369:1", "primaryLocationStartColumnFingerprint": "0" } }, { "ruleId": "py/imprecise-assert", "rule": { "id": "py/imprecise-assert", "index": 139, "toolComponent": { "index": 11 } }, "message": { "text": "assertTrue(a is b) cannot provide an informative message. Using assertIs(a, b) instead will give more informative messages." }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "tests/unit/test_network_connections.py", "uriBaseId": "%SRCROOT%", "index": 3 }, "region": { "startLine": 3481, "startColumn": 9, "endColumn": 66 } } } ], "partialFingerprints": { "primaryLocationLineHash": "3d13a4d623bd56a4:1", "primaryLocationStartColumnFingerprint": "0" } }, { "ruleId": "py/imprecise-assert", "rule": { "id": "py/imprecise-assert", "index": 139, "toolComponent": { "index": 11 } }, "message": { "text": "assertTrue(a == b) cannot provide an informative message. Using assertEqual(a, b) instead will give more informative messages." }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "tests/unit/test_network_connections.py", "uriBaseId": "%SRCROOT%", "index": 3 }, "region": { "startLine": 3511, "startColumn": 9, "endColumn": 68 } } } ], "partialFingerprints": { "primaryLocationLineHash": "7abddd04c1b270b5:1", "primaryLocationStartColumnFingerprint": "0" } }, { "ruleId": "py/imprecise-assert", "rule": { "id": "py/imprecise-assert", "index": 139, "toolComponent": { "index": 11 } }, "message": { "text": "assertTrue(a == b) cannot provide an informative message. Using assertEqual(a, b) instead will give more informative messages." }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "tests/unit/test_network_connections.py", "uriBaseId": "%SRCROOT%", "index": 3 }, "region": { "startLine": 4250, "startColumn": 9, "endColumn": 47 } } } ], "partialFingerprints": { "primaryLocationLineHash": "fcb7b3bc44b14431:1", "primaryLocationStartColumnFingerprint": "0" } }, { "ruleId": "py/imprecise-assert", "rule": { "id": "py/imprecise-assert", "index": 139, "toolComponent": { "index": 11 } }, "message": { "text": "assertTrue(a in b) cannot provide an informative message. Using assertIn(a, b) instead will give more informative messages." }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "tests/unit/test_network_connections.py", "uriBaseId": "%SRCROOT%", "index": 3 }, "region": { "startLine": 4252, "startColumn": 13, "endColumn": 56 } } } ], "partialFingerprints": { "primaryLocationLineHash": "cba3e26a866f9b0f:1", "primaryLocationStartColumnFingerprint": "0" } }, { "ruleId": "py/imprecise-assert", "rule": { "id": "py/imprecise-assert", "index": 139, "toolComponent": { "index": 11 } }, "message": { "text": "assertTrue(a not in b) cannot provide an informative message. Using assertNotIn(a, b) instead will give more informative messages." }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "tests/unit/test_network_connections.py", "uriBaseId": "%SRCROOT%", "index": 3 }, "region": { "startLine": 4254, "startColumn": 13, "endColumn": 56 } } } ], "partialFingerprints": { "primaryLocationLineHash": "568b10bfa17bf49c:1", "primaryLocationStartColumnFingerprint": "0" } }, { "ruleId": "py/imprecise-assert", "rule": { "id": "py/imprecise-assert", "index": 139, "toolComponent": { "index": 11 } }, "message": { "text": "assertTrue(a == b) cannot provide an informative message. Using assertEqual(a, b) instead will give more informative messages." }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "tests/unit/test_network_connections.py", "uriBaseId": "%SRCROOT%", "index": 3 }, "region": { "startLine": 4278, "startColumn": 9, "endColumn": 47 } } } ], "partialFingerprints": { "primaryLocationLineHash": "cf293d8dbb1173da:1", "primaryLocationStartColumnFingerprint": "0" } }, { "ruleId": "py/imprecise-assert", "rule": { "id": "py/imprecise-assert", "index": 139, "toolComponent": { "index": 11 } }, "message": { "text": "assertTrue(a in b) cannot provide an informative message. Using assertIn(a, b) instead will give more informative messages." }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "tests/unit/test_network_connections.py", "uriBaseId": "%SRCROOT%", "index": 3 }, "region": { "startLine": 4280, "startColumn": 13, "endColumn": 55 } } } ], "partialFingerprints": { "primaryLocationLineHash": "d234067578614ef9:1", "primaryLocationStartColumnFingerprint": "0" } }, { "ruleId": "py/imprecise-assert", "rule": { "id": "py/imprecise-assert", "index": 139, "toolComponent": { "index": 11 } }, "message": { "text": "assertTrue(a not in b) cannot provide an informative message. Using assertNotIn(a, b) instead will give more informative messages." }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "tests/unit/test_network_connections.py", "uriBaseId": "%SRCROOT%", "index": 3 }, "region": { "startLine": 4282, "startColumn": 13, "endColumn": 60 } } } ], "partialFingerprints": { "primaryLocationLineHash": "7785777e8e76bde0:1", "primaryLocationStartColumnFingerprint": "0" } }, { "ruleId": "py/overwritten-inherited-attribute", "rule": { "id": "py/overwritten-inherited-attribute", "index": 148, "toolComponent": { "index": 11 } }, "message": { "text": "Assignment overwrites attribute validate_one_type, which was previously defined in superclass [Cmd](1)." }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "library/network_connections.py", "uriBaseId": "%SRCROOT%", "index": 1 }, "region": { "startLine": 2130, "startColumn": 9, "endColumn": 83 } } } ], "partialFingerprints": { "primaryLocationLineHash": "6236d392535173a3:1", "primaryLocationStartColumnFingerprint": "0" }, "relatedLocations": [ { "id": 1, "physicalLocation": { "artifactLocation": { "uri": "library/network_connections.py", "uriBaseId": "%SRCROOT%", "index": 1 }, "region": { "startLine": 1810, "startColumn": 9, "endColumn": 38 } }, "message": { "text": "Cmd" } } ] }, { "ruleId": "py/overwritten-inherited-attribute", "rule": { "id": "py/overwritten-inherited-attribute", "index": 148, "toolComponent": { "index": 11 } }, "message": { "text": "Assignment overwrites attribute validate_one_type, which was previously defined in superclass [Cmd](1)." }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "library/network_connections.py", "uriBaseId": "%SRCROOT%", "index": 1 }, "region": { "startLine": 2501, "startColumn": 9, "endLine": 2503, "endColumn": 10 } } } ], "partialFingerprints": { "primaryLocationLineHash": "db8d057213974509:1", "primaryLocationStartColumnFingerprint": "0" }, "relatedLocations": [ { "id": 1, "physicalLocation": { "artifactLocation": { "uri": "library/network_connections.py", "uriBaseId": "%SRCROOT%", "index": 1 }, "region": { "startLine": 1810, "startColumn": 9, "endColumn": 38 } }, "message": { "text": "Cmd" } } ] }, { "ruleId": "py/uninitialized-local-variable", "rule": { "id": "py/uninitialized-local-variable", "index": 162, "toolComponent": { "index": 11 } }, "message": { "text": "Local variable 'dev_state' may be used before it is initialized." }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "library/network_connections.py", "uriBaseId": "%SRCROOT%", "index": 1 }, "region": { "startLine": 1532, "startColumn": 21, "endColumn": 30 } } } ], "partialFingerprints": { "primaryLocationLineHash": "e6eeb6a1d86a4650:1", "primaryLocationStartColumnFingerprint": "0" } }, { "ruleId": "py/uninitialized-local-variable", "rule": { "id": "py/uninitialized-local-variable", "index": 162, "toolComponent": { "index": 11 } }, "message": { "text": "Local variable 'dev_id' may be used before it is initialized." }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "library/network_connections.py", "uriBaseId": "%SRCROOT%", "index": 1 }, "region": { "startLine": 1580, "startColumn": 44, "endColumn": 50 } } } ], "partialFingerprints": { "primaryLocationLineHash": "27af37c82d76c2e0:1", "primaryLocationStartColumnFingerprint": "23" } }, { "ruleId": "py/uninitialized-local-variable", "rule": { "id": "py/uninitialized-local-variable", "index": 162, "toolComponent": { "index": 11 } }, "message": { "text": "Local variable 'ac' may be used before it is initialized." }, "locations": [ { "physicalLocation": { "artifactLocation": { "uri": "library/network_connections.py", "uriBaseId": "%SRCROOT%", "index": 1 }, "region": { "startLine": 2449, "startColumn": 54, "endColumn": 56 } } } ], "partialFingerprints": { "primaryLocationLineHash": "dd9fcbb08231241c:1", "primaryLocationStartColumnFingerprint": "37" } } ]