pylint 3.3.9 astroid 3.3.8 Python 3.14.2 (main, Dec 5 2025, 00:00:00) [GCC 15.2.1 20251111 (Red Hat 15.2.1-4)] Redirect to /tmp/tmp.9NKpHP4SlE and /tmp/tmp.ltIfOmdVbr Tree base: 6ecea6822d37 ("tools: ynl: fix pylint dict, indentation, long lines, uninitialised") Now at: 0b71c0fd4686 ("tools: ynl: fix pylint misc warnings") ====== Checking before the patch ====== ************* Module pyynl.lib.doc_generator tools/net/ynl/pyynl/lib/doc_generator.py:112:8: R1715: Consider using dict.get for getting values from a dict if a key is present or a default if not (consider-using-get) ------------------------------------------------------------------- Your code has been rated at 9.95/10 (previous run: 10.00/10, -0.05) ************* Module pyynl.lib.nlspec tools/net/ynl/pyynl/lib/nlspec.py:17:0: C0103: Constant name "jsonschema" doesn't conform to UPPER_CASE naming style (invalid-name) tools/net/ynl/pyynl/lib/nlspec.py:106:8: R1705: Unnecessary "else" after "return", remove the "else" and de-indent the code inside it (no-else-return) tools/net/ynl/pyynl/lib/nlspec.py:197:30: R1714: Consider merging these comparisons with 'in' by using 'self.type in ('sint', 'uint')'. Use a set instead if elements are hashable. (consider-using-in) tools/net/ynl/pyynl/lib/nlspec.py:303:15: E1101: Instance of 'list' has no 'items' member (no-member) tools/net/ynl/pyynl/lib/nlspec.py:467:12: W0603: Using the global statement (global-statement) tools/net/ynl/pyynl/lib/nlspec.py:580:22: E0606: Possibly using variable 'op' before assignment (possibly-used-before-assignment) ------------------------------------------------------------------ Your code has been rated at 9.58/10 (previous run: 9.58/10, +0.00) ************* Module pyynl.lib.ynl tools/net/ynl/pyynl/lib/ynl.py:323:0: C0103: Constant name "genl_family_name_to_id" doesn't conform to UPPER_CASE naming style (invalid-name) tools/net/ynl/pyynl/lib/ynl.py:351:8: W0603: Using the global statement (global-statement) tools/net/ynl/pyynl/lib/ynl.py:352:33: R1735: Consider using '{}' instead of a call to 'dict'. (use-dict-literal) tools/net/ynl/pyynl/lib/ynl.py:418:38: W0613: Unused argument 'version' (unused-argument) tools/net/ynl/pyynl/lib/ynl.py:428:28: W0212: Access to a protected member _struct_size of a client class (protected-access) tools/net/ynl/pyynl/lib/ynl.py:445:8: W0602: Using global for 'genl_family_name_to_id' but no assignment is done (global-variable-not-assigned) tools/net/ynl/pyynl/lib/ynl.py:758:31: C0123: Use isinstance() rather than type() for a typecheck. (unidiomatic-typecheck) tools/net/ynl/pyynl/lib/ynl.py:990:33: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) ------------------------------------------------------------------ Your code has been rated at 9.91/10 (previous run: 9.91/10, +0.00) ====== Checking the tree with the patch ====== ------------------------------------------------------------------- Your code has been rated at 10.00/10 (previous run: 9.95/10, +0.05) ************* Module pyynl.lib.nlspec tools/net/ynl/pyynl/lib/nlspec.py:17:0: C0103: Constant name "jsonschema" doesn't conform to UPPER_CASE naming style (invalid-name) tools/net/ynl/pyynl/lib/nlspec.py:302:15: E1101: Instance of 'list' has no 'items' member (no-member) tools/net/ynl/pyynl/lib/nlspec.py:466:12: W0603: Using the global statement (global-statement) tools/net/ynl/pyynl/lib/nlspec.py:579:22: E0606: Possibly using variable 'op' before assignment (possibly-used-before-assignment) ------------------------------------------------------------------ Your code has been rated at 9.64/10 (previous run: 9.58/10, +0.06) ************* Module pyynl.lib.ynl tools/net/ynl/pyynl/lib/ynl.py:323:0: C0103: Constant name "genl_family_name_to_id" doesn't conform to UPPER_CASE naming style (invalid-name) tools/net/ynl/pyynl/lib/ynl.py:351:8: W0603: Using the global statement (global-statement) tools/net/ynl/pyynl/lib/ynl.py:352:33: R1735: Consider using '{}' instead of a call to 'dict'. (use-dict-literal) tools/net/ynl/pyynl/lib/ynl.py:445:8: W0602: Using global for 'genl_family_name_to_id' but no assignment is done (global-variable-not-assigned) ------------------------------------------------------------------ Your code has been rated at 9.96/10 (previous run: 9.91/10, +0.04)