Skip to content

Commit

Permalink
Display rule codes in --show-settings
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Apr 17, 2024
1 parent 0a63274 commit bd5f848
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/ruff_linter/src/registry/rule_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,8 @@ impl Display for RuleSet {
} else {
writeln!(f, "[")?;
for rule in self {
writeln!(f, "\t{rule:?},")?;
let code = rule.noqa_code();
writeln!(f, "\t{rule:?} ({code}),")?;
}
write!(f, "]")?;
}
Expand Down

0 comments on commit bd5f848

Please sign in to comment.