Skip to content

Commit 6b7a738

Browse files
Add explanation of fixable in --statistics command (#13774)
Co-authored-by: Micha Reiser <[email protected]>
1 parent 4ea4bbb commit 6b7a738

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

crates/ruff/src/printer.rs

+4
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,10 @@ impl Printer {
417417
statistic.name,
418418
)?;
419419
}
420+
421+
if any_fixable {
422+
writeln!(writer, "[*] fixable with `ruff check --fix`",)?;
423+
}
420424
return Ok(());
421425
}
422426
OutputFormat::Json => {

crates/ruff/tests/integration_test.rs

+1
Original file line numberDiff line numberDiff line change
@@ -979,6 +979,7 @@ fn show_statistics() {
979979
exit_code: 1
980980
----- stdout -----
981981
1 F401 [*] unused-import
982+
[*] fixable with `ruff check --fix`
982983
983984
----- stderr -----
984985
"###);

0 commit comments

Comments
 (0)