Skip to content

Commit e168310

Browse files
Add debug information
1 parent f6d290b commit e168310

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

doc/exts/pylint_options.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,18 @@ def _write_options_page(options: OptionsDataDict, linter: PyLinter) -> None:
175175
get_rst_title("Standard Checkers", "^"),
176176
]
177177
found_extensions = False
178+
178179
# We can't sort without using a key because if keys are checkers
179180
# then it's impossible to have a checker with the same name spanning
180181
# various class, and it would make pylint plugin code less readable
181182
# by forcing to use a single class / file
182-
for checker_name, checker_options in sorted(
183-
options.items(), key=lambda x: x[1][0].checker
184-
):
183+
sorted_checkers = sorted(options.items(), key=lambda x: x[1][0].checker)
184+
to_print = [
185+
f"({k}, {v[0].checker.__class__} [{' '.join([i.name for i in v])})]"
186+
for k, v in sorted_checkers
187+
]
188+
print("\n".join(to_print))
189+
for checker_name, checker_options in sorted_checkers:
185190
if not found_extensions and checker_options[0].extension:
186191
sections.append(get_rst_title("Extensions", "^"))
187192
found_extensions = True

0 commit comments

Comments
 (0)