Skip to content

Commit 7044099

Browse files
Add debug informations
1 parent f6eaff4 commit 7044099

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/exts/pylint_options.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,10 @@ def _write_options_page(options: OptionsDataDict, linter: PyLinter) -> None:
182182
# then it's impossible to have a checker with the same name spanning
183183
# various class, and it would make pylint plugin code less readable
184184
# by forcing to use a single class / file
185-
for checker_name, checker_options in sorted(
186-
options.items(), key=lambda x: x[1][0].checker
187-
):
185+
sorted_checkers = sorted(options.items(), key=lambda x: x[1][0].checker)
186+
to_print = [f"({k}, [{''.join([i.name for i in v])})]" for k, v in sorted_checkers]
187+
print("\n".join(to_print))
188+
for checker_name, checker_options in sorted_checkers:
188189
if not found_extensions and checker_options[0].extension:
189190
sections.append(get_rst_title("Extensions", "^"))
190191
found_extensions = True

0 commit comments

Comments
 (0)