pylint 3.3.7 astroid 3.3.8 Python 3.13.3 (main, Apr 22 2025, 00:00:00) [GCC 15.0.1 20250418 (Red Hat 15.0.1-0)] Redirect to /tmp/tmp.oJRBVlMKZu and /tmp/tmp.g7E69h4T2Q Tree base: 3844b9cc4797 ("docs: sphinx: add a parser for yaml files for Netlink specs") Now at: 62476951dc43 ("docs: use parser_yaml extension to handle Netlink specs") ====== Checking before the patch ====== ************* Module conf Documentation/conf.py:347:0: W0311: Bad indentation. Found 16 spaces, expected 12 (bad-indentation) Documentation/conf.py:577:0: W0311: Bad indentation. Found 1 spaces, expected 4 (bad-indentation) Documentation/conf.py:557:1: W0511: FIXME: Do not add the index file here; the result will be too big. Adding (fixme) Documentation/conf.py:1:0: C0114: Missing module docstring (missing-module-docstring) Documentation/conf.py:219:0: W0622: Redefining built-in 'copyright' (redefined-builtin) Documentation/conf.py:21:22: I1101: Module 'sphinx' has no 'version_info' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects. (c-extension-no-member) Documentation/conf.py:25:4: C0103: Constant name "has_include_patterns" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:27:4: C0103: Constant name "has_include_patterns" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:56:4: W0612: Unused variable 'sourcedir' (unused-variable) Documentation/conf.py:57:4: W0612: Unused variable 'builddir' (unused-variable) Documentation/conf.py:95:0: E0401: Unable to import 'load_config' (import-error) Documentation/conf.py:95:0: C0413: Import "from load_config import loadConfig" should be placed at the top of the module (wrong-import-position) Documentation/conf.py:100:0: C0103: Constant name "needs_sphinx" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:177:0: C0103: Constant name "autosectionlabel_prefix_document" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:178:0: C0103: Constant name "autosectionlabel_maxdepth" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:191:8: C0103: Constant name "load_imgmath" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:193:8: C0103: Constant name "load_imgmath" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:195:25: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) Documentation/conf.py:199:4: C0103: Constant name "math_renderer" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:201:4: C0103: Constant name "math_renderer" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:209:0: C0103: Constant name "source_suffix" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:215:0: C0103: Constant name "master_doc" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:218:0: C0103: Constant name "project" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:219:0: C0103: Constant name "copyright" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:220:0: C0103: Constant name "author" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:243:0: W0702: No exception type(s) specified (bare-except) Documentation/conf.py:233:4: C0103: Constant name "makefile_version" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:234:4: C0103: Constant name "makefile_patchlevel" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:235:16: R1732: Consider using 'with' for resource-allocating operations (consider-using-with) Documentation/conf.py:235:16: W1514: Using open without explicitly specifying an encoding (unspecified-encoding) Documentation/conf.py:249:8: C0103: Constant name "version" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:249:18: C0103: Constant name "release" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:256:0: C0116: Missing function or method docstring (missing-function-docstring) Documentation/conf.py:274:0: C0103: Constant name "language" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:298:0: C0103: Constant name "pygments_style" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:307:0: C0103: Constant name "todo_include_todos" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:309:0: C0103: Constant name "primary_domain" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:310:0: C0103: Constant name "highlight_language" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:318:0: C0103: Constant name "html_theme" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:324:3: R1714: Consider merging these comparisons with 'in' by using 'html_theme in ('sphinx_rtd_theme', 'sphinx_rtd_dark_mode')'. Use a set instead if elements are hashable. (consider-using-in) Documentation/conf.py:343:16: W0104: Statement seems to have no effect (pointless-statement) Documentation/conf.py:354:8: C0103: Constant name "html_theme" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:372:17: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) Documentation/conf.py:382:0: C0103: Constant name "smartquotes_action" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:394:0: C0103: Constant name "html_logo" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:397:0: C0103: Constant name "htmlhelp_basename" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:477:8: C0103: Constant name "has" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:480:16: C0103: Constant name "has" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:484:36: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) Documentation/conf.py:541:0: C0103: Constant name "epub_title" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:542:0: C0103: Constant name "epub_author" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:543:0: C0103: Constant name "epub_publisher" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:544:0: C0103: Constant name "epub_copyright" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:561:29: W1406: The u prefix for strings is no longer necessary in Python >=3.0 (redundant-u-string-prefix) Documentation/conf.py:561:40: W1406: The u prefix for strings is no longer necessary in Python >=3.0 (redundant-u-string-prefix) Documentation/conf.py:561:51: W1406: The u prefix for strings is no longer necessary in Python >=3.0 (redundant-u-string-prefix) Documentation/conf.py:567:0: C0103: Constant name "kerneldoc_bin" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:568:0: C0103: Constant name "kerneldoc_srctree" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:576:0: C0116: Missing function or method docstring (missing-function-docstring) Documentation/conf.py:18:0: C0411: standard import "shutil" should be placed before third party import "sphinx" (wrong-import-order) Documentation/conf.py:340:16: W0611: Unused import sphinx_rtd_dark_mode (unused-import) ------------------------------------------------------------------ Your code has been rated at 5.79/10 (previous run: 5.79/10, +0.00) ************* Module parser_yaml Documentation/sphinx/parser_yaml.py:11:0: E0401: Unable to import 'docutils.parsers.rst' (import-error) Documentation/sphinx/parser_yaml.py:12:0: E0401: Unable to import 'docutils.statemachine' (import-error) Documentation/sphinx/parser_yaml.py:14:0: E0401: Unable to import 'sphinx.util' (import-error) Documentation/sphinx/parser_yaml.py:15:0: E0401: Unable to import 'sphinx.parsers' (import-error) Documentation/sphinx/parser_yaml.py:20:0: E0401: Unable to import 'netlink_yml_parser' (import-error) Documentation/sphinx/parser_yaml.py:47:15: W0718: Catching too general exception Exception (broad-exception-caught) Documentation/sphinx/parser_yaml.py:48:36: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) Documentation/sphinx/parser_yaml.py:6:0: W0611: Unused import re (unused-import) ------------------------------------------------------------------ Your code has been rated at 2.00/10 (previous run: 2.00/10, +0.00) ====== Checking the tree with the patch ====== ************* Module conf Documentation/conf.py:357:0: W0311: Bad indentation. Found 16 spaces, expected 12 (bad-indentation) Documentation/conf.py:587:0: W0311: Bad indentation. Found 1 spaces, expected 4 (bad-indentation) Documentation/conf.py:567:1: W0511: FIXME: Do not add the index file here; the result will be too big. Adding (fixme) Documentation/conf.py:1:0: C0114: Missing module docstring (missing-module-docstring) Documentation/conf.py:229:0: W0622: Redefining built-in 'copyright' (redefined-builtin) Documentation/conf.py:21:22: I1101: Module 'sphinx' has no 'version_info' member, but source is unavailable. Consider adding this module to extension-pkg-allow-list if you want to perform analysis based on run-time introspection of living objects. (c-extension-no-member) Documentation/conf.py:25:4: C0103: Constant name "has_include_patterns" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:27:4: C0103: Constant name "has_include_patterns" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:65:4: W0612: Unused variable 'sourcedir' (unused-variable) Documentation/conf.py:66:4: W0612: Unused variable 'builddir' (unused-variable) Documentation/conf.py:104:0: E0401: Unable to import 'load_config' (import-error) Documentation/conf.py:104:0: C0413: Import "from load_config import loadConfig" should be placed at the top of the module (wrong-import-position) Documentation/conf.py:109:0: C0103: Constant name "needs_sphinx" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:186:0: C0103: Constant name "autosectionlabel_prefix_document" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:187:0: C0103: Constant name "autosectionlabel_maxdepth" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:200:8: C0103: Constant name "load_imgmath" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:202:8: C0103: Constant name "load_imgmath" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:204:25: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) Documentation/conf.py:208:4: C0103: Constant name "math_renderer" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:210:4: C0103: Constant name "math_renderer" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:225:0: C0103: Constant name "master_doc" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:228:0: C0103: Constant name "project" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:229:0: C0103: Constant name "copyright" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:230:0: C0103: Constant name "author" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:253:0: W0702: No exception type(s) specified (bare-except) Documentation/conf.py:243:4: C0103: Constant name "makefile_version" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:244:4: C0103: Constant name "makefile_patchlevel" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:245:16: R1732: Consider using 'with' for resource-allocating operations (consider-using-with) Documentation/conf.py:245:16: W1514: Using open without explicitly specifying an encoding (unspecified-encoding) Documentation/conf.py:259:8: C0103: Constant name "version" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:259:18: C0103: Constant name "release" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:266:0: C0116: Missing function or method docstring (missing-function-docstring) Documentation/conf.py:284:0: C0103: Constant name "language" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:308:0: C0103: Constant name "pygments_style" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:317:0: C0103: Constant name "todo_include_todos" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:319:0: C0103: Constant name "primary_domain" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:320:0: C0103: Constant name "highlight_language" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:328:0: C0103: Constant name "html_theme" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:334:3: R1714: Consider merging these comparisons with 'in' by using 'html_theme in ('sphinx_rtd_theme', 'sphinx_rtd_dark_mode')'. Use a set instead if elements are hashable. (consider-using-in) Documentation/conf.py:353:16: W0104: Statement seems to have no effect (pointless-statement) Documentation/conf.py:364:8: C0103: Constant name "html_theme" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:382:17: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) Documentation/conf.py:392:0: C0103: Constant name "smartquotes_action" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:404:0: C0103: Constant name "html_logo" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:407:0: C0103: Constant name "htmlhelp_basename" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:487:8: C0103: Constant name "has" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:490:16: C0103: Constant name "has" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:494:36: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) Documentation/conf.py:551:0: C0103: Constant name "epub_title" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:552:0: C0103: Constant name "epub_author" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:553:0: C0103: Constant name "epub_publisher" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:554:0: C0103: Constant name "epub_copyright" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:571:29: W1406: The u prefix for strings is no longer necessary in Python >=3.0 (redundant-u-string-prefix) Documentation/conf.py:571:40: W1406: The u prefix for strings is no longer necessary in Python >=3.0 (redundant-u-string-prefix) Documentation/conf.py:571:51: W1406: The u prefix for strings is no longer necessary in Python >=3.0 (redundant-u-string-prefix) Documentation/conf.py:577:0: C0103: Constant name "kerneldoc_bin" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:578:0: C0103: Constant name "kerneldoc_srctree" doesn't conform to UPPER_CASE naming style (invalid-name) Documentation/conf.py:586:0: C0116: Missing function or method docstring (missing-function-docstring) Documentation/conf.py:18:0: C0411: standard import "shutil" should be placed before third party import "sphinx" (wrong-import-order) Documentation/conf.py:350:16: W0611: Unused import sphinx_rtd_dark_mode (unused-import) ------------------------------------------------------------------ Your code has been rated at 5.99/10 (previous run: 5.79/10, +0.20) ************* Module parser_yaml Documentation/sphinx/parser_yaml.py:11:0: E0401: Unable to import 'docutils.parsers.rst' (import-error) Documentation/sphinx/parser_yaml.py:12:0: E0401: Unable to import 'docutils.statemachine' (import-error) Documentation/sphinx/parser_yaml.py:14:0: E0401: Unable to import 'sphinx.util' (import-error) Documentation/sphinx/parser_yaml.py:15:0: E0401: Unable to import 'sphinx.parsers' (import-error) Documentation/sphinx/parser_yaml.py:20:0: E0401: Unable to import 'doc_generator' (import-error) Documentation/sphinx/parser_yaml.py:47:15: W0718: Catching too general exception Exception (broad-exception-caught) Documentation/sphinx/parser_yaml.py:48:36: C0209: Formatting a regular string which could be an f-string (consider-using-f-string) Documentation/sphinx/parser_yaml.py:6:0: W0611: Unused import re (unused-import) ------------------------------------------------------------------ Your code has been rated at 2.00/10 (previous run: 2.00/10, +0.00)