pylint 3.3.9 astroid 3.3.8 Python 3.14.3 (main, Feb 4 2026, 00:00:00) [GCC 15.2.1 20260123 (Red Hat 15.2.1-7)] Redirect to /tmp/tmp.AI4hh3joEZ and /tmp/tmp.ygc9tbjuPh Tree base: b2e9c611a48a ("netdevsim: support tc-ets offload") Now at: 0e9b4098869a ("tc-testing: add a test case for ETS offload") ====== Checking before the patch ====== ************* Module tdc tools/testing/selftests/tc-testing/tdc.py:282:0: C0301: Line too long (107/100) (line-too-long) tools/testing/selftests/tc-testing/tdc.py:289:0: C0301: Line too long (191/100) (line-too-long) tools/testing/selftests/tc-testing/tdc.py:317:0: C0325: Unnecessary parens after 'if' keyword (superfluous-parens) tools/testing/selftests/tc-testing/tdc.py:318:0: C0301: Line too long (106/100) (line-too-long) tools/testing/selftests/tc-testing/tdc.py:325:0: C0301: Line too long (191/100) (line-too-long) tools/testing/selftests/tc-testing/tdc.py:347:0: C0301: Line too long (110/100) (line-too-long) tools/testing/selftests/tc-testing/tdc.py:368:0: C0301: Line too long (108/100) (line-too-long) tools/testing/selftests/tc-testing/tdc.py:399:0: C0325: Unnecessary parens after 'if' keyword (superfluous-parens) tools/testing/selftests/tc-testing/tdc.py:403:0: C0325: Unnecessary parens after 'if' keyword (superfluous-parens) tools/testing/selftests/tc-testing/tdc.py:421:0: C0325: Unnecessary parens after 'if' keyword (superfluous-parens) tools/testing/selftests/tc-testing/tdc.py:437:0: C0301: Line too long (114/100) (line-too-long) tools/testing/selftests/tc-testing/tdc.py:452:0: C0301: Line too long (112/100) (line-too-long) tools/testing/selftests/tc-testing/tdc.py:457:0: C0301: Line too long (109/100) (line-too-long) tools/testing/selftests/tc-testing/tdc.py:470:0: C0325: Unnecessary parens after 'del' keyword (superfluous-parens) tools/testing/selftests/tc-testing/tdc.py:492:0: C0301: Line too long (115/100) (line-too-long) tools/testing/selftests/tc-testing/tdc.py:651:0: C0325: Unnecessary parens after 'not' keyword (superfluous-parens) tools/testing/selftests/tc-testing/tdc.py:667:0: C0325: Unnecessary parens after 'if' keyword (superfluous-parens) tools/testing/selftests/tc-testing/tdc.py:784:0: C0325: Unnecessary parens after 'return' keyword (superfluous-parens) tools/testing/selftests/tc-testing/tdc.py:793:0: C0325: Unnecessary parens after 'if' keyword (superfluous-parens) tools/testing/selftests/tc-testing/tdc.py:796:0: C0325: Unnecessary parens after 'if' keyword (superfluous-parens) tools/testing/selftests/tc-testing/tdc.py:804:0: C0325: Unnecessary parens after 'if' keyword (superfluous-parens) tools/testing/selftests/tc-testing/tdc.py:924:0: C0325: Unnecessary parens after 'if' keyword (superfluous-parens) tools/testing/selftests/tc-testing/tdc.py:931:0: C0325: Unnecessary parens after 'if' keyword (superfluous-parens) tools/testing/selftests/tc-testing/tdc.py:1:0: C0302: Too many lines in module (1027/1000) (too-many-lines) tools/testing/selftests/tc-testing/tdc.py:24:0: W0401: Wildcard import tdc_config (wildcard-import) tools/testing/selftests/tc-testing/tdc.py:25:0: W0401: Wildcard import tdc_helper (wildcard-import) tools/testing/selftests/tc-testing/tdc.py:28:0: W0401: Wildcard import TdcResults (wildcard-import) tools/testing/selftests/tc-testing/tdc.py:30:0: C0115: Missing class docstring (missing-class-docstring) tools/testing/selftests/tc-testing/tdc.py:34:0: C0115: Missing class docstring (missing-class-docstring) tools/testing/selftests/tc-testing/tdc.py:40:0: C0115: Missing class docstring (missing-class-docstring) tools/testing/selftests/tc-testing/tdc.py:56:20: C0104: Disallowed name "foo" (disallowed-name) tools/testing/selftests/tc-testing/tdc.py:49:12: W0612: Unused variable 'dirpath' (unused-variable) tools/testing/selftests/tc-testing/tdc.py:49:21: W0612: Unused variable 'dirnames' (unused-variable) tools/testing/selftests/tc-testing/tdc.py:60:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:64:8: C0104: Disallowed name "foo" (disallowed-name) tools/testing/selftests/tc-testing/tdc.py:64:38: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:106:24: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:109:29: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:112:16: R1724: Unnecessary "elif" after "continue", remove the leading "el" from "elif" (no-else-continue) tools/testing/selftests/tc-testing/tdc.py:113:26: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:118:26: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:129:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:133:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:137:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:144:22: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:146:22: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:149:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:155:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:161:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:167:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:168:13: W0612: Unused variable 'pgn' (unused-variable) tools/testing/selftests/tc-testing/tdc.py:172:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:173:13: W0612: Unused variable 'pgn' (unused-variable) tools/testing/selftests/tc-testing/tdc.py:176:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:183:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:188:8: E0602: Undefined variable 'self' (undefined-variable) tools/testing/selftests/tc-testing/tdc.py:187:24: W0613: Unused argument 'args' (unused-argument) tools/testing/selftests/tc-testing/tdc.py:184:8: W0201: Attribute 'args' defined outside __init__ (attribute-defined-outside-init) tools/testing/selftests/tc-testing/tdc.py:213:14: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:228:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:215:11: R1732: Consider using 'with' for resource-allocating operations (consider-using-with) tools/testing/selftests/tc-testing/tdc.py:236:0: R0913: Too many arguments (7/5) (too-many-arguments) tools/testing/selftests/tc-testing/tdc.py:236:0: R0917: Too many positional arguments (7/5) (too-many-positional-arguments) tools/testing/selftests/tc-testing/tdc.py:242:14: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:258:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:260:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:262:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:264:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:265:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:266:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:269:16: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:271:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:273:8: C0103: Variable name "outputJSON" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/tc-testing/tdc.py:279:4: C0103: Variable name "matchJSON" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/tc-testing/tdc.py:271:39: W0613: Unused argument 'args' (unused-argument) tools/testing/selftests/tc-testing/tdc.py:271:45: W0613: Unused argument 'pm' (unused-argument) tools/testing/selftests/tc-testing/tdc.py:298:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:298:22: C0103: Argument name "outputJSONVal" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/tc-testing/tdc.py:298:37: C0103: Argument name "matchJSONVal" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/tc-testing/tdc.py:298:51: C0103: Argument name "matchJSONKey" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/tc-testing/tdc.py:302:7: C0123: Use isinstance() rather than type() for a typecheck. (unidiomatic-typecheck) tools/testing/selftests/tc-testing/tdc.py:305:9: C0123: Use isinstance() rather than type() for a typecheck. (unidiomatic-typecheck) tools/testing/selftests/tc-testing/tdc.py:316:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:316:27: C0103: Argument name "outputJSONVal" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/tc-testing/tdc.py:316:42: C0103: Argument name "matchJSONVal" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/tc-testing/tdc.py:316:56: C0103: Argument name "matchJSONKey" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/tc-testing/tdc.py:331:22: R1704: Redefining argument with the local name 'matchJSONVal' (redefined-argument-from-local) tools/testing/selftests/tc-testing/tdc.py:331:8: C0103: Variable name "matchJSONIdx" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/tc-testing/tdc.py:336:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:336:27: C0103: Argument name "outputJSONVal" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/tc-testing/tdc.py:336:42: C0103: Argument name "matchJSONVal" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/tc-testing/tdc.py:337:22: R1704: Redefining argument with the local name 'matchJSONVal' (redefined-argument-from-local) tools/testing/selftests/tc-testing/tdc.py:337:8: C0103: Variable name "matchJSONKey" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/tc-testing/tdc.py:338:11: C0123: Use isinstance() rather than type() for a typecheck. (unidiomatic-typecheck) tools/testing/selftests/tc-testing/tdc.py:348:42: E0602: Undefined variable 'outputJSON' (undefined-variable) tools/testing/selftests/tc-testing/tdc.py:348:69: E0602: Undefined variable 'matchJSON' (undefined-variable) tools/testing/selftests/tc-testing/tdc.py:351:19: E0602: Undefined variable 'rest' (undefined-variable) tools/testing/selftests/tc-testing/tdc.py:353:11: C0123: Use isinstance() rather than type() for a typecheck. (unidiomatic-typecheck) tools/testing/selftests/tc-testing/tdc.py:353:44: C0123: Use isinstance() rather than type() for a typecheck. (unidiomatic-typecheck) tools/testing/selftests/tc-testing/tdc.py:354:16: C0123: Use isinstance() rather than type() for a typecheck. (unidiomatic-typecheck) tools/testing/selftests/tc-testing/tdc.py:364:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:364:28: C0103: Argument name "outputJSONVal" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/tc-testing/tdc.py:364:43: C0103: Argument name "matchJSONVal" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/tc-testing/tdc.py:364:57: C0103: Argument name "matchJSONKey" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/tc-testing/tdc.py:375:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:375:0: R0914: Too many local variables (17/15) (too-many-locals) tools/testing/selftests/tc-testing/tdc.py:376:4: W0602: Using global for 'NAMES' but no assignment is done (global-variable-not-assigned) tools/testing/selftests/tc-testing/tdc.py:413:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:414:20: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:415:20: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:416:21: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:433:14: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:434:14: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:437:24: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:452:36: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:457:32: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:375:0: R0912: Too many branches (21/12) (too-many-branches) tools/testing/selftests/tc-testing/tdc.py:375:0: R0915: Too many statements (84/50) (too-many-statements) tools/testing/selftests/tc-testing/tdc.py:381:4: W0612: Unused variable 'result' (unused-variable) tools/testing/selftests/tc-testing/tdc.py:382:4: W0612: Unused variable 'tresult' (unused-variable) tools/testing/selftests/tc-testing/tdc.py:383:4: W0612: Unused variable 'tap' (unused-variable) tools/testing/selftests/tc-testing/tdc.py:480:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:487:11: W0718: Catching too general exception Exception (broad-exception-caught) tools/testing/selftests/tc-testing/tdc.py:489:14: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:492:33: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:480:0: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements) tools/testing/selftests/tc-testing/tdc.py:480:20: W0613: Unused argument 'args' (unused-argument) tools/testing/selftests/tc-testing/tdc.py:487:4: W0612: Unused variable 'ee' (unused-variable) tools/testing/selftests/tc-testing/tdc.py:499:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:502:0: R0914: Too many local variables (21/15) (too-many-locals) tools/testing/selftests/tc-testing/tdc.py:521:44: C0121: Comparison 'args.device == None' should be 'args.device is None' (singleton-comparison) tools/testing/selftests/tc-testing/tdc.py:549:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:571:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:502:0: R0915: Too many statements (60/50) (too-many-statements) tools/testing/selftests/tc-testing/tdc.py:514:4: W0612: Unused variable 'tap' (unused-variable) tools/testing/selftests/tc-testing/tdc.py:541:12: W0612: Unused variable 'output' (unused-variable) tools/testing/selftests/tc-testing/tdc.py:584:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:602:11: W0212: Access to a protected member _testsuite of a client class (protected-access) tools/testing/selftests/tc-testing/tdc.py:604:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:612:10: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:613:10: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:616:4: W0601: Global variable 'mp_pm' undefined at the module level (global-variable-undefined) tools/testing/selftests/tc-testing/tdc.py:619:4: W0601: Global variable 'mp_args' undefined at the module level (global-variable-undefined) tools/testing/selftests/tc-testing/tdc.py:635:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:639:14: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:660:13: W1514: Using open without explicitly specifying an encoding (unspecified-encoding) tools/testing/selftests/tc-testing/tdc.py:663:14: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:664:19: R1734: Consider using [] instead of list() (use-list-literal) tools/testing/selftests/tc-testing/tdc.py:672:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:750:4: W0602: Using global for 'NAMES' but no assignment is done (global-variable-not-assigned) tools/testing/selftests/tc-testing/tdc.py:752:7: C0121: Comparison 'args.path != None' should be 'args.path is not None' (singleton-comparison) tools/testing/selftests/tc-testing/tdc.py:754:7: C0121: Comparison 'args.device != None' should be 'args.device is not None' (singleton-comparison) tools/testing/selftests/tc-testing/tdc.py:760:8: R1722: Consider using 'sys.exit' instead (consider-using-sys-exit) tools/testing/selftests/tc-testing/tdc.py:795:28: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:796:16: R1724: Unnecessary "else" after "continue", remove the "else" and de-indent the code inside it (no-else-continue) tools/testing/selftests/tc-testing/tdc.py:814:18: W1514: Using open without explicitly specifying an encoding (unspecified-encoding) tools/testing/selftests/tc-testing/tdc.py:814:18: R1732: Consider using 'with' for resource-allocating operations (consider-using-with) tools/testing/selftests/tc-testing/tdc.py:824:14: R1734: Consider using [] instead of list() (use-list-literal) tools/testing/selftests/tc-testing/tdc.py:836:13: R1734: Consider using [] instead of list() (use-list-literal) tools/testing/selftests/tc-testing/tdc.py:838:19: R1734: Consider using [] instead of list() (use-list-literal) tools/testing/selftests/tc-testing/tdc.py:842:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:850:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:854:0: R0914: Too many local variables (19/15) (too-many-locals) tools/testing/selftests/tc-testing/tdc.py:862:4: C0415: Import outside toplevel (fnmatch) (import-outside-toplevel) tools/testing/selftests/tc-testing/tdc.py:887:19: R1734: Consider using [] instead of list() (use-list-literal) tools/testing/selftests/tc-testing/tdc.py:854:0: R0912: Too many branches (15/12) (too-many-branches) tools/testing/selftests/tc-testing/tdc.py:881:18: W0612: Unused variable 'dirnames' (unused-variable) tools/testing/selftests/tc-testing/tdc.py:915:0: R0914: Too many local variables (18/15) (too-many-locals) tools/testing/selftests/tc-testing/tdc.py:925:12: E1111: Assigning result of a function call, where the function has no return (assignment-from-no-return) tools/testing/selftests/tc-testing/tdc.py:928:8: R1722: Consider using 'sys.exit' instead (consider-using-sys-exit) tools/testing/selftests/tc-testing/tdc.py:935:8: R1722: Consider using 'sys.exit' instead (consider-using-sys-exit) tools/testing/selftests/tc-testing/tdc.py:940:8: R1722: Consider using 'sys.exit' instead (consider-using-sys-exit) tools/testing/selftests/tc-testing/tdc.py:945:8: R1722: Consider using 'sys.exit' instead (consider-using-sys-exit) tools/testing/selftests/tc-testing/tdc.py:949:8: R1722: Consider using 'sys.exit' instead (consider-using-sys-exit) tools/testing/selftests/tc-testing/tdc.py:954:7: C1802: Do not use `len(SEQUENCE)` without comparison to determine if a sequence is empty (use-implicit-booleaness-not-len) tools/testing/selftests/tc-testing/tdc.py:960:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:979:18: E0606: Possibly using variable 'res' before assignment (possibly-used-before-assignment) tools/testing/selftests/tc-testing/tdc.py:982:24: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:982:49: E0606: Possibly using variable 'suffix' before assignment (possibly-used-before-assignment) tools/testing/selftests/tc-testing/tdc.py:985:17: W1514: Using open without explicitly specifying an encoding (unspecified-encoding) tools/testing/selftests/tc-testing/tdc.py:994:4: R1722: Consider using 'sys.exit' instead (consider-using-sys-exit) tools/testing/selftests/tc-testing/tdc.py:915:0: R0912: Too many branches (21/12) (too-many-branches) tools/testing/selftests/tc-testing/tdc.py:915:0: R0915: Too many statements (64/50) (too-many-statements) tools/testing/selftests/tc-testing/tdc.py:921:18: W0612: Unused variable 'testcases' (unused-variable) tools/testing/selftests/tc-testing/tdc.py:1001:4: C0415: Import outside toplevel (resource) (import-outside-toplevel) tools/testing/selftests/tc-testing/tdc.py:1018:14: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:17:0: W0611: Unused import time (unused-import) tools/testing/selftests/tc-testing/tdc.py:27:0: W0611: Unused import TdcPlugin (unused-import) tools/testing/selftests/tc-testing/tdc.py:24:0: W0614: Unused import(s) ie and ne from wildcard import of tdc_config (unused-wildcard-import) tools/testing/selftests/tc-testing/tdc.py:25:0: W0614: Unused import(s) list_categories and print_list from wildcard import of tdc_helper (unused-wildcard-import) tools/testing/selftests/tc-testing/tdc.py:28:0: W0614: Unused import(s) Enum from wildcard import of TdcResults (unused-wildcard-import) ----------------------------------- Your code has been rated at 6.80/10 ************* Module tdc_config tools/testing/selftests/tc-testing/tdc_config.py:36:4: W0401: Wildcard import tdc_config_local (wildcard-import) ----------------------------------- Your code has been rated at 9.00/10 ====== Checking the tree with the patch ====== ************* Module tdc tools/testing/selftests/tc-testing/tdc.py:282:0: C0301: Line too long (107/100) (line-too-long) tools/testing/selftests/tc-testing/tdc.py:289:0: C0301: Line too long (191/100) (line-too-long) tools/testing/selftests/tc-testing/tdc.py:317:0: C0325: Unnecessary parens after 'if' keyword (superfluous-parens) tools/testing/selftests/tc-testing/tdc.py:318:0: C0301: Line too long (106/100) (line-too-long) tools/testing/selftests/tc-testing/tdc.py:325:0: C0301: Line too long (191/100) (line-too-long) tools/testing/selftests/tc-testing/tdc.py:347:0: C0301: Line too long (110/100) (line-too-long) tools/testing/selftests/tc-testing/tdc.py:368:0: C0301: Line too long (108/100) (line-too-long) tools/testing/selftests/tc-testing/tdc.py:399:0: C0325: Unnecessary parens after 'if' keyword (superfluous-parens) tools/testing/selftests/tc-testing/tdc.py:403:0: C0325: Unnecessary parens after 'if' keyword (superfluous-parens) tools/testing/selftests/tc-testing/tdc.py:421:0: C0325: Unnecessary parens after 'if' keyword (superfluous-parens) tools/testing/selftests/tc-testing/tdc.py:437:0: C0301: Line too long (114/100) (line-too-long) tools/testing/selftests/tc-testing/tdc.py:452:0: C0301: Line too long (112/100) (line-too-long) tools/testing/selftests/tc-testing/tdc.py:457:0: C0301: Line too long (109/100) (line-too-long) tools/testing/selftests/tc-testing/tdc.py:470:0: C0325: Unnecessary parens after 'del' keyword (superfluous-parens) tools/testing/selftests/tc-testing/tdc.py:492:0: C0301: Line too long (115/100) (line-too-long) tools/testing/selftests/tc-testing/tdc.py:651:0: C0325: Unnecessary parens after 'not' keyword (superfluous-parens) tools/testing/selftests/tc-testing/tdc.py:667:0: C0325: Unnecessary parens after 'if' keyword (superfluous-parens) tools/testing/selftests/tc-testing/tdc.py:787:0: C0325: Unnecessary parens after 'return' keyword (superfluous-parens) tools/testing/selftests/tc-testing/tdc.py:796:0: C0325: Unnecessary parens after 'if' keyword (superfluous-parens) tools/testing/selftests/tc-testing/tdc.py:799:0: C0325: Unnecessary parens after 'if' keyword (superfluous-parens) tools/testing/selftests/tc-testing/tdc.py:807:0: C0325: Unnecessary parens after 'if' keyword (superfluous-parens) tools/testing/selftests/tc-testing/tdc.py:927:0: C0325: Unnecessary parens after 'if' keyword (superfluous-parens) tools/testing/selftests/tc-testing/tdc.py:934:0: C0325: Unnecessary parens after 'if' keyword (superfluous-parens) tools/testing/selftests/tc-testing/tdc.py:1:0: C0302: Too many lines in module (1030/1000) (too-many-lines) tools/testing/selftests/tc-testing/tdc.py:24:0: W0401: Wildcard import tdc_config (wildcard-import) tools/testing/selftests/tc-testing/tdc.py:25:0: W0401: Wildcard import tdc_helper (wildcard-import) tools/testing/selftests/tc-testing/tdc.py:28:0: W0401: Wildcard import TdcResults (wildcard-import) tools/testing/selftests/tc-testing/tdc.py:30:0: C0115: Missing class docstring (missing-class-docstring) tools/testing/selftests/tc-testing/tdc.py:34:0: C0115: Missing class docstring (missing-class-docstring) tools/testing/selftests/tc-testing/tdc.py:40:0: C0115: Missing class docstring (missing-class-docstring) tools/testing/selftests/tc-testing/tdc.py:56:20: C0104: Disallowed name "foo" (disallowed-name) tools/testing/selftests/tc-testing/tdc.py:49:12: W0612: Unused variable 'dirpath' (unused-variable) tools/testing/selftests/tc-testing/tdc.py:49:21: W0612: Unused variable 'dirnames' (unused-variable) tools/testing/selftests/tc-testing/tdc.py:60:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:64:8: C0104: Disallowed name "foo" (disallowed-name) tools/testing/selftests/tc-testing/tdc.py:64:38: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:106:24: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:109:29: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:112:16: R1724: Unnecessary "elif" after "continue", remove the leading "el" from "elif" (no-else-continue) tools/testing/selftests/tc-testing/tdc.py:113:26: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:118:26: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:129:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:133:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:137:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:144:22: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:146:22: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:149:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:155:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:161:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:167:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:168:13: W0612: Unused variable 'pgn' (unused-variable) tools/testing/selftests/tc-testing/tdc.py:172:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:173:13: W0612: Unused variable 'pgn' (unused-variable) tools/testing/selftests/tc-testing/tdc.py:176:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:183:4: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:188:8: E0602: Undefined variable 'self' (undefined-variable) tools/testing/selftests/tc-testing/tdc.py:187:24: W0613: Unused argument 'args' (unused-argument) tools/testing/selftests/tc-testing/tdc.py:184:8: W0201: Attribute 'args' defined outside __init__ (attribute-defined-outside-init) tools/testing/selftests/tc-testing/tdc.py:213:14: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:228:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:215:11: R1732: Consider using 'with' for resource-allocating operations (consider-using-with) tools/testing/selftests/tc-testing/tdc.py:236:0: R0913: Too many arguments (7/5) (too-many-arguments) tools/testing/selftests/tc-testing/tdc.py:236:0: R0917: Too many positional arguments (7/5) (too-many-positional-arguments) tools/testing/selftests/tc-testing/tdc.py:242:14: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:258:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:260:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:262:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:264:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:265:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:266:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:269:16: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:271:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:273:8: C0103: Variable name "outputJSON" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/tc-testing/tdc.py:279:4: C0103: Variable name "matchJSON" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/tc-testing/tdc.py:271:39: W0613: Unused argument 'args' (unused-argument) tools/testing/selftests/tc-testing/tdc.py:271:45: W0613: Unused argument 'pm' (unused-argument) tools/testing/selftests/tc-testing/tdc.py:298:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:298:22: C0103: Argument name "outputJSONVal" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/tc-testing/tdc.py:298:37: C0103: Argument name "matchJSONVal" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/tc-testing/tdc.py:298:51: C0103: Argument name "matchJSONKey" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/tc-testing/tdc.py:302:7: C0123: Use isinstance() rather than type() for a typecheck. (unidiomatic-typecheck) tools/testing/selftests/tc-testing/tdc.py:305:9: C0123: Use isinstance() rather than type() for a typecheck. (unidiomatic-typecheck) tools/testing/selftests/tc-testing/tdc.py:316:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:316:27: C0103: Argument name "outputJSONVal" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/tc-testing/tdc.py:316:42: C0103: Argument name "matchJSONVal" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/tc-testing/tdc.py:316:56: C0103: Argument name "matchJSONKey" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/tc-testing/tdc.py:331:22: R1704: Redefining argument with the local name 'matchJSONVal' (redefined-argument-from-local) tools/testing/selftests/tc-testing/tdc.py:331:8: C0103: Variable name "matchJSONIdx" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/tc-testing/tdc.py:336:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:336:27: C0103: Argument name "outputJSONVal" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/tc-testing/tdc.py:336:42: C0103: Argument name "matchJSONVal" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/tc-testing/tdc.py:337:22: R1704: Redefining argument with the local name 'matchJSONVal' (redefined-argument-from-local) tools/testing/selftests/tc-testing/tdc.py:337:8: C0103: Variable name "matchJSONKey" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/tc-testing/tdc.py:338:11: C0123: Use isinstance() rather than type() for a typecheck. (unidiomatic-typecheck) tools/testing/selftests/tc-testing/tdc.py:348:42: E0602: Undefined variable 'outputJSON' (undefined-variable) tools/testing/selftests/tc-testing/tdc.py:348:69: E0602: Undefined variable 'matchJSON' (undefined-variable) tools/testing/selftests/tc-testing/tdc.py:351:19: E0602: Undefined variable 'rest' (undefined-variable) tools/testing/selftests/tc-testing/tdc.py:353:11: C0123: Use isinstance() rather than type() for a typecheck. (unidiomatic-typecheck) tools/testing/selftests/tc-testing/tdc.py:353:44: C0123: Use isinstance() rather than type() for a typecheck. (unidiomatic-typecheck) tools/testing/selftests/tc-testing/tdc.py:354:16: C0123: Use isinstance() rather than type() for a typecheck. (unidiomatic-typecheck) tools/testing/selftests/tc-testing/tdc.py:364:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:364:28: C0103: Argument name "outputJSONVal" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/tc-testing/tdc.py:364:43: C0103: Argument name "matchJSONVal" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/tc-testing/tdc.py:364:57: C0103: Argument name "matchJSONKey" doesn't conform to snake_case naming style (invalid-name) tools/testing/selftests/tc-testing/tdc.py:375:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:375:0: R0914: Too many local variables (17/15) (too-many-locals) tools/testing/selftests/tc-testing/tdc.py:376:4: W0602: Using global for 'NAMES' but no assignment is done (global-variable-not-assigned) tools/testing/selftests/tc-testing/tdc.py:413:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:414:20: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:415:20: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:416:21: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:433:14: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:434:14: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:437:24: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:452:36: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:457:32: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:375:0: R0912: Too many branches (21/12) (too-many-branches) tools/testing/selftests/tc-testing/tdc.py:375:0: R0915: Too many statements (84/50) (too-many-statements) tools/testing/selftests/tc-testing/tdc.py:381:4: W0612: Unused variable 'result' (unused-variable) tools/testing/selftests/tc-testing/tdc.py:382:4: W0612: Unused variable 'tresult' (unused-variable) tools/testing/selftests/tc-testing/tdc.py:383:4: W0612: Unused variable 'tap' (unused-variable) tools/testing/selftests/tc-testing/tdc.py:480:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:487:11: W0718: Catching too general exception Exception (broad-exception-caught) tools/testing/selftests/tc-testing/tdc.py:489:14: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:492:33: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:480:0: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements) tools/testing/selftests/tc-testing/tdc.py:480:20: W0613: Unused argument 'args' (unused-argument) tools/testing/selftests/tc-testing/tdc.py:487:4: W0612: Unused variable 'ee' (unused-variable) tools/testing/selftests/tc-testing/tdc.py:499:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:502:0: R0914: Too many local variables (21/15) (too-many-locals) tools/testing/selftests/tc-testing/tdc.py:521:44: C0121: Comparison 'args.device == None' should be 'args.device is None' (singleton-comparison) tools/testing/selftests/tc-testing/tdc.py:549:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:571:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:502:0: R0915: Too many statements (60/50) (too-many-statements) tools/testing/selftests/tc-testing/tdc.py:514:4: W0612: Unused variable 'tap' (unused-variable) tools/testing/selftests/tc-testing/tdc.py:541:12: W0612: Unused variable 'output' (unused-variable) tools/testing/selftests/tc-testing/tdc.py:584:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:602:11: W0212: Access to a protected member _testsuite of a client class (protected-access) tools/testing/selftests/tc-testing/tdc.py:604:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:612:10: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:613:10: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:616:4: W0601: Global variable 'mp_pm' undefined at the module level (global-variable-undefined) tools/testing/selftests/tc-testing/tdc.py:619:4: W0601: Global variable 'mp_args' undefined at the module level (global-variable-undefined) tools/testing/selftests/tc-testing/tdc.py:635:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:639:14: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:660:13: W1514: Using open without explicitly specifying an encoding (unspecified-encoding) tools/testing/selftests/tc-testing/tdc.py:663:14: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:664:19: R1734: Consider using [] instead of list() (use-list-literal) tools/testing/selftests/tc-testing/tdc.py:672:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:750:4: W0602: Using global for 'NAMES' but no assignment is done (global-variable-not-assigned) tools/testing/selftests/tc-testing/tdc.py:752:7: C0121: Comparison 'args.path != None' should be 'args.path is not None' (singleton-comparison) tools/testing/selftests/tc-testing/tdc.py:754:7: C0121: Comparison 'args.device != None' should be 'args.device is not None' (singleton-comparison) tools/testing/selftests/tc-testing/tdc.py:760:8: R1722: Consider using 'sys.exit' instead (consider-using-sys-exit) tools/testing/selftests/tc-testing/tdc.py:763:8: R1722: Consider using 'sys.exit' instead (consider-using-sys-exit) tools/testing/selftests/tc-testing/tdc.py:798:28: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:799:16: R1724: Unnecessary "else" after "continue", remove the "else" and de-indent the code inside it (no-else-continue) tools/testing/selftests/tc-testing/tdc.py:817:18: W1514: Using open without explicitly specifying an encoding (unspecified-encoding) tools/testing/selftests/tc-testing/tdc.py:817:18: R1732: Consider using 'with' for resource-allocating operations (consider-using-with) tools/testing/selftests/tc-testing/tdc.py:827:14: R1734: Consider using [] instead of list() (use-list-literal) tools/testing/selftests/tc-testing/tdc.py:839:13: R1734: Consider using [] instead of list() (use-list-literal) tools/testing/selftests/tc-testing/tdc.py:841:19: R1734: Consider using [] instead of list() (use-list-literal) tools/testing/selftests/tc-testing/tdc.py:845:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:853:0: C0116: Missing function or method docstring (missing-function-docstring) tools/testing/selftests/tc-testing/tdc.py:857:0: R0914: Too many local variables (19/15) (too-many-locals) tools/testing/selftests/tc-testing/tdc.py:865:4: C0415: Import outside toplevel (fnmatch) (import-outside-toplevel) tools/testing/selftests/tc-testing/tdc.py:890:19: R1734: Consider using [] instead of list() (use-list-literal) tools/testing/selftests/tc-testing/tdc.py:857:0: R0912: Too many branches (15/12) (too-many-branches) tools/testing/selftests/tc-testing/tdc.py:884:18: W0612: Unused variable 'dirnames' (unused-variable) tools/testing/selftests/tc-testing/tdc.py:918:0: R0914: Too many local variables (18/15) (too-many-locals) tools/testing/selftests/tc-testing/tdc.py:928:12: E1111: Assigning result of a function call, where the function has no return (assignment-from-no-return) tools/testing/selftests/tc-testing/tdc.py:931:8: R1722: Consider using 'sys.exit' instead (consider-using-sys-exit) tools/testing/selftests/tc-testing/tdc.py:938:8: R1722: Consider using 'sys.exit' instead (consider-using-sys-exit) tools/testing/selftests/tc-testing/tdc.py:943:8: R1722: Consider using 'sys.exit' instead (consider-using-sys-exit) tools/testing/selftests/tc-testing/tdc.py:948:8: R1722: Consider using 'sys.exit' instead (consider-using-sys-exit) tools/testing/selftests/tc-testing/tdc.py:952:8: R1722: Consider using 'sys.exit' instead (consider-using-sys-exit) tools/testing/selftests/tc-testing/tdc.py:957:7: C1802: Do not use `len(SEQUENCE)` without comparison to determine if a sequence is empty (use-implicit-booleaness-not-len) tools/testing/selftests/tc-testing/tdc.py:963:18: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:982:18: E0606: Possibly using variable 'res' before assignment (possibly-used-before-assignment) tools/testing/selftests/tc-testing/tdc.py:985:24: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:985:49: E0606: Possibly using variable 'suffix' before assignment (possibly-used-before-assignment) tools/testing/selftests/tc-testing/tdc.py:988:17: W1514: Using open without explicitly specifying an encoding (unspecified-encoding) tools/testing/selftests/tc-testing/tdc.py:997:4: R1722: Consider using 'sys.exit' instead (consider-using-sys-exit) tools/testing/selftests/tc-testing/tdc.py:918:0: R0912: Too many branches (21/12) (too-many-branches) tools/testing/selftests/tc-testing/tdc.py:918:0: R0915: Too many statements (64/50) (too-many-statements) tools/testing/selftests/tc-testing/tdc.py:924:18: W0612: Unused variable 'testcases' (unused-variable) tools/testing/selftests/tc-testing/tdc.py:1004:4: C0415: Import outside toplevel (resource) (import-outside-toplevel) tools/testing/selftests/tc-testing/tdc.py:1021:14: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) tools/testing/selftests/tc-testing/tdc.py:17:0: W0611: Unused import time (unused-import) tools/testing/selftests/tc-testing/tdc.py:27:0: W0611: Unused import TdcPlugin (unused-import) tools/testing/selftests/tc-testing/tdc.py:24:0: W0614: Unused import(s) ie and ne from wildcard import of tdc_config (unused-wildcard-import) tools/testing/selftests/tc-testing/tdc.py:25:0: W0614: Unused import(s) list_categories and print_list from wildcard import of tdc_helper (unused-wildcard-import) tools/testing/selftests/tc-testing/tdc.py:28:0: W0614: Unused import(s) Enum from wildcard import of TdcResults (unused-wildcard-import) ------------------------------------------------------------------ Your code has been rated at 6.80/10 (previous run: 6.80/10, -0.00) ************* Module tdc_config tools/testing/selftests/tc-testing/tdc_config.py:37:4: W0401: Wildcard import tdc_config_local (wildcard-import) ------------------------------------------------------------------ Your code has been rated at 9.00/10 (previous run: 9.00/10, +0.00)