====== Checking before the patch ====== ====== Checking the tree with the patch ====== New errors added --- /tmp/tmp.xKavWBPPJF 2025-09-25 18:12:18.058842308 -0700 +++ /tmp/tmp.BO83ahU3go 2025-09-25 18:12:23.100807245 -0700 @@ -23,3 +23,3 @@ -tools/testing/selftests/drivers/net/lib/py/env.py:164:0: C0301: Line too long (114/100) (line-too-long) -tools/testing/selftests/drivers/net/lib/py/env.py:190:0: C0301: Line too long (101/100) (line-too-long) -tools/testing/selftests/drivers/net/lib/py/env.py:191:0: C0301: Line too long (107/100) (line-too-long) +tools/testing/selftests/drivers/net/lib/py/env.py:165:0: C0301: Line too long (114/100) (line-too-long) +tools/testing/selftests/drivers/net/lib/py/env.py:191:0: C0301: Line too long (101/100) (line-too-long) +tools/testing/selftests/drivers/net/lib/py/env.py:192:0: C0301: Line too long (107/100) (line-too-long) @@ -31,6 +31,7 @@ -tools/testing/selftests/drivers/net/lib/py/env.py:38:13: W1514: Using open without explicitly specifying an encoding (unspecified-encoding) -tools/testing/selftests/drivers/net/lib/py/env.py:50:20: W0719: Raising too general exception: Exception (broad-exception-raised) -tools/testing/selftests/drivers/net/lib/py/env.py:71:0: R0903: Too few public methods (1/2) (too-few-public-methods) -tools/testing/selftests/drivers/net/lib/py/env.py:100:0: R0902: Too many instance attributes (17/7) (too-many-instance-attributes) -tools/testing/selftests/drivers/net/lib/py/env.py:174:4: C0116: Missing function or method docstring (missing-function-docstring) -tools/testing/selftests/drivers/net/lib/py/env.py:179:13: W1514: Using open without explicitly specifying an encoding (unspecified-encoding) +tools/testing/selftests/drivers/net/lib/py/env.py:10:0: E0401: Unable to import 'lib.py' (import-error) +tools/testing/selftests/drivers/net/lib/py/env.py:10:0: W0404: Reimport 'KsftXfailEx' (imported line 6) (reimported) +tools/testing/selftests/drivers/net/lib/py/env.py:39:13: W1514: Using open without explicitly specifying an encoding (unspecified-encoding) +tools/testing/selftests/drivers/net/lib/py/env.py:51:20: W0719: Raising too general exception: Exception (broad-exception-raised) +tools/testing/selftests/drivers/net/lib/py/env.py:72:0: R0903: Too few public methods (1/2) (too-few-public-methods) +tools/testing/selftests/drivers/net/lib/py/env.py:101:0: R0902: Too many instance attributes (17/7) (too-many-instance-attributes) +tools/testing/selftests/drivers/net/lib/py/env.py:175:4: C0116: Missing function or method docstring (missing-function-docstring) @@ -38,6 +39,8 @@ -tools/testing/selftests/drivers/net/lib/py/env.py:215:12: W0719: Raising too general exception: Exception (broad-exception-raised) -tools/testing/selftests/drivers/net/lib/py/env.py:218:4: C0116: Missing function or method docstring (missing-function-docstring) -tools/testing/selftests/drivers/net/lib/py/env.py:225:12: W0719: Raising too general exception: Exception (broad-exception-raised) -tools/testing/selftests/drivers/net/lib/py/env.py:227:12: W0719: Raising too general exception: Exception (broad-exception-raised) -tools/testing/selftests/drivers/net/lib/py/env.py:244:4: C0116: Missing function or method docstring (missing-function-docstring) -tools/testing/selftests/drivers/net/lib/py/env.py:256:4: C0116: Missing function or method docstring (missing-function-docstring) +tools/testing/selftests/drivers/net/lib/py/env.py:181:13: W1514: Using open without explicitly specifying an encoding (unspecified-encoding) +tools/testing/selftests/drivers/net/lib/py/env.py:216:12: W0719: Raising too general exception: Exception (broad-exception-raised) +tools/testing/selftests/drivers/net/lib/py/env.py:219:4: C0116: Missing function or method docstring (missing-function-docstring) +tools/testing/selftests/drivers/net/lib/py/env.py:226:12: W0719: Raising too general exception: Exception (broad-exception-raised) +tools/testing/selftests/drivers/net/lib/py/env.py:228:12: W0719: Raising too general exception: Exception (broad-exception-raised) +tools/testing/selftests/drivers/net/lib/py/env.py:245:4: C0116: Missing function or method docstring (missing-function-docstring) +tools/testing/selftests/drivers/net/lib/py/env.py:249:4: C0116: Missing function or method docstring (missing-function-docstring) +tools/testing/selftests/drivers/net/lib/py/env.py:261:4: C0116: Missing function or method docstring (missing-function-docstring) @@ -46 +49 @@ -Your code has been rated at 7.96/10 (previous run: 7.62/10, +0.33) +Your code has been rated at 7.62/10 (previous run: 7.96/10, -0.33) @@ -50 +53,4 @@ -tools/testing/selftests/drivers/net/psp.py:470:0: C0116: Missing function or method docstring (missing-function-docstring) +tools/testing/selftests/drivers/net/psp.py:454:13: R1718: Consider using a set comprehension (consider-using-set-comprehension) +tools/testing/selftests/drivers/net/psp.py:456:4: W0212: Access to a protected member _ns of a client class (protected-access) +tools/testing/selftests/drivers/net/psp.py:458:12: R1718: Consider using a set comprehension (consider-using-set-comprehension) +tools/testing/selftests/drivers/net/psp.py:525:0: C0116: Missing function or method docstring (missing-function-docstring) @@ -53 +59 @@ -Your code has been rated at 9.94/10 (previous run: 9.94/10, +0.00) +Your code has been rated at 9.85/10 (previous run: 9.94/10, -0.09) @@ -56,2 +62,2 @@ -tools/testing/selftests/net/lib/py/ksft.py:117:0: C0301: Line too long (108/100) (line-too-long) -tools/testing/selftests/net/lib/py/ksft.py:280:0: C0301: Line too long (126/100) (line-too-long) +tools/testing/selftests/net/lib/py/ksft.py:122:0: C0301: Line too long (108/100) (line-too-long) +tools/testing/selftests/net/lib/py/ksft.py:285:0: C0301: Line too long (126/100) (line-too-long) @@ -76,25 +82,26 @@ -tools/testing/selftests/net/lib/py/ksft.py:105:0: C0115: Missing class docstring (missing-class-docstring) -tools/testing/selftests/net/lib/py/ksft.py:105:0: C0103: Class name "ksft_raises" doesn't conform to PascalCase naming style (invalid-name) -tools/testing/selftests/net/lib/py/ksft.py:123:0: C0116: Missing function or method docstring (missing-function-docstring) -tools/testing/selftests/net/lib/py/ksft.py:134:0: C0116: Missing function or method docstring (missing-function-docstring) -tools/testing/selftests/net/lib/py/ksft.py:135:4: W0603: Using the global statement (global-statement) -tools/testing/selftests/net/lib/py/ksft.py:151:0: C0116: Missing function or method docstring (missing-function-docstring) -tools/testing/selftests/net/lib/py/ksft.py:152:4: W0603: Using the global statement (global-statement) -tools/testing/selftests/net/lib/py/ksft.py:161:8: W0702: No exception type(s) specified (bare-except) -tools/testing/selftests/net/lib/py/ksft.py:179:29: W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation) -tools/testing/selftests/net/lib/py/ksft.py:198:12: W0707: Consider explicitly re-raising using 'except Exception as exc' and 'raise Exception(f'failed to parse {name}') from exc' (raise-missing-from) -tools/testing/selftests/net/lib/py/ksft.py:198:12: W0719: Raising too general exception: Exception (broad-exception-raised) -tools/testing/selftests/net/lib/py/ksft.py:201:8: W0603: Using the global statement (global-statement) -tools/testing/selftests/net/lib/py/ksft.py:210:4: W0601: Global variable 'term_cnt' undefined at the module level (global-variable-undefined) -tools/testing/selftests/net/lib/py/ksft.py:211:4: E0602: Undefined variable 'term_cnt' (undefined-variable) -tools/testing/selftests/net/lib/py/ksft.py:212:4: R1720: Unnecessary "else" after "raise", remove the "else" and de-indent the code inside it (no-else-raise) -tools/testing/selftests/net/lib/py/ksft.py:207:15: W0613: Unused argument 'signum' (unused-argument) -tools/testing/selftests/net/lib/py/ksft.py:207:23: W0613: Unused argument 'frame' (unused-argument) -tools/testing/selftests/net/lib/py/ksft.py:218:0: C0116: Missing function or method docstring (missing-function-docstring) -tools/testing/selftests/net/lib/py/ksft.py:218:0: R0914: Too many local variables (17/15) (too-many-locals) -tools/testing/selftests/net/lib/py/ksft.py:230:4: W0601: Global variable 'term_cnt' undefined at the module level (global-variable-undefined) -tools/testing/selftests/net/lib/py/ksft.py:239:4: W0603: Using the global statement (global-statement) -tools/testing/selftests/net/lib/py/ksft.py:256:15: W0718: Catching too general exception BaseException (broad-exception-caught) -tools/testing/selftests/net/lib/py/ksft.py:218:0: R0912: Too many branches (13/12) (too-many-branches) -tools/testing/selftests/net/lib/py/ksft.py:284:0: C0116: Missing function or method docstring (missing-function-docstring) -tools/testing/selftests/net/lib/py/ksft.py:285:4: W0602: Using global for 'KSFT_RESULT_ALL' but no assignment is done (global-variable-not-assigned) +tools/testing/selftests/net/lib/py/ksft.py:105:0: C0116: Missing function or method docstring (missing-function-docstring) +tools/testing/selftests/net/lib/py/ksft.py:110:0: C0115: Missing class docstring (missing-class-docstring) +tools/testing/selftests/net/lib/py/ksft.py:110:0: C0103: Class name "ksft_raises" doesn't conform to PascalCase naming style (invalid-name) +tools/testing/selftests/net/lib/py/ksft.py:128:0: C0116: Missing function or method docstring (missing-function-docstring) +tools/testing/selftests/net/lib/py/ksft.py:139:0: C0116: Missing function or method docstring (missing-function-docstring) +tools/testing/selftests/net/lib/py/ksft.py:140:4: W0603: Using the global statement (global-statement) +tools/testing/selftests/net/lib/py/ksft.py:156:0: C0116: Missing function or method docstring (missing-function-docstring) +tools/testing/selftests/net/lib/py/ksft.py:157:4: W0603: Using the global statement (global-statement) +tools/testing/selftests/net/lib/py/ksft.py:166:8: W0702: No exception type(s) specified (bare-except) +tools/testing/selftests/net/lib/py/ksft.py:184:29: W1309: Using an f-string that does not have any interpolated variables (f-string-without-interpolation) +tools/testing/selftests/net/lib/py/ksft.py:203:12: W0707: Consider explicitly re-raising using 'except Exception as exc' and 'raise Exception(f'failed to parse {name}') from exc' (raise-missing-from) +tools/testing/selftests/net/lib/py/ksft.py:203:12: W0719: Raising too general exception: Exception (broad-exception-raised) +tools/testing/selftests/net/lib/py/ksft.py:206:8: W0603: Using the global statement (global-statement) +tools/testing/selftests/net/lib/py/ksft.py:215:4: W0601: Global variable 'term_cnt' undefined at the module level (global-variable-undefined) +tools/testing/selftests/net/lib/py/ksft.py:216:4: E0602: Undefined variable 'term_cnt' (undefined-variable) +tools/testing/selftests/net/lib/py/ksft.py:217:4: R1720: Unnecessary "else" after "raise", remove the "else" and de-indent the code inside it (no-else-raise) +tools/testing/selftests/net/lib/py/ksft.py:212:15: W0613: Unused argument 'signum' (unused-argument) +tools/testing/selftests/net/lib/py/ksft.py:212:23: W0613: Unused argument 'frame' (unused-argument) +tools/testing/selftests/net/lib/py/ksft.py:223:0: C0116: Missing function or method docstring (missing-function-docstring) +tools/testing/selftests/net/lib/py/ksft.py:223:0: R0914: Too many local variables (17/15) (too-many-locals) +tools/testing/selftests/net/lib/py/ksft.py:235:4: W0601: Global variable 'term_cnt' undefined at the module level (global-variable-undefined) +tools/testing/selftests/net/lib/py/ksft.py:244:4: W0603: Using the global statement (global-statement) +tools/testing/selftests/net/lib/py/ksft.py:261:15: W0718: Catching too general exception BaseException (broad-exception-caught) +tools/testing/selftests/net/lib/py/ksft.py:223:0: R0912: Too many branches (13/12) (too-many-branches) +tools/testing/selftests/net/lib/py/ksft.py:289:0: C0116: Missing function or method docstring (missing-function-docstring) +tools/testing/selftests/net/lib/py/ksft.py:290:4: W0602: Using global for 'KSFT_RESULT_ALL' but no assignment is done (global-variable-not-assigned) @@ -104 +111 @@ -Your code has been rated at 7.45/10 (previous run: 7.45/10, +0.00) +Your code has been rated at 7.44/10 (previous run: 7.45/10, -0.01)