rules: remove unused rule-category meta

This commit is contained in:
Willi Ballenthin
2022-06-06 13:43:44 -06:00
parent 42e2c53e5e
commit 867662ba5a
2 changed files with 1 additions and 5 deletions

View File

@@ -801,15 +801,12 @@ def lint_rule(ctx: Context, rule: Rule):
# this is by far the most common reason to be in the nursery,
# and ends up just producing a lot of noise.
if not (is_nursery_rule(rule) and len(violations) == 1 and violations[0].name == "missing examples"):
category = rule.meta.get("rule-category")
print("")
print(
"%s%s %s"
"%s%s"
% (
" (nursery) " if is_nursery_rule(rule) else "",
rule.name,
("(%s)" % category) if category else "",
)
)