Fix table

This commit is contained in:
Zanie
2023-10-26 16:17:32 -05:00
parent 2e36781a8a
commit 9a8bd09ae6

View File

@@ -189,7 +189,7 @@ def markdown_check_result(result: Result) -> str:
# Display a summary table of changed rules
table_lines = []
table_lines.append("| code | total | + violation | - violation | + fix | - fix |")
table_lines.append("| ---- | ------- | --------- | -------- | ----- | ")
table_lines.append("| ---- | ------- | --------- | -------- | ----- | ---- |")
for rule, total in sorted(
all_rule_changes.total_changes_by_rule(),
key=lambda item: item[1], # Sort by the total changes