mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-24 05:25:17 +00:00
Remove "blanket" from RUF100 README message (#2844)
This commit is contained in:
parent
32520ff07f
commit
d1cf0ee52b
3 changed files with 3 additions and 3 deletions
|
@ -21,7 +21,6 @@ impl AlwaysAutofixableViolation for UnusedNOQA {
|
|||
fn message(&self) -> String {
|
||||
let UnusedNOQA { codes } = self;
|
||||
match codes {
|
||||
None => format!("Unused blanket `noqa` directive"),
|
||||
Some(codes) => {
|
||||
let mut codes_by_reason = vec![];
|
||||
if !codes.unmatched.is_empty() {
|
||||
|
@ -60,6 +59,7 @@ impl AlwaysAutofixableViolation for UnusedNOQA {
|
|||
format!("Unused `noqa` directive ({})", codes_by_reason.join("; "))
|
||||
}
|
||||
}
|
||||
None => format!("Unused blanket `noqa` directive"),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue