mirror of
https://github.com/astral-sh/ruff
synced 2026-01-09 07:34:06 -05:00
Report diagnostics for invalid/unmatched range suppression comments (#21908)
## Summary - Adds new RUF103 and RUF104 diagnostics for invalid and unmatched suppression comments - Reports RUF100 for any unused range suppression - Reports RUF102 for range suppression comment with invalid rule codes - Reports RUF103 for range suppression comment with invalid suppression syntax - Reports RUF104 diagnostics for any unmatched range suppression comment (disable w/o enable) ## Test Plan Updated snapshots from test cases with unmatched suppression comments Issue #3711 Fixes #21878 Fixes #21875
This commit is contained in:
2
ruff.schema.json
generated
2
ruff.schema.json
generated
@@ -4051,6 +4051,8 @@
|
||||
"RUF100",
|
||||
"RUF101",
|
||||
"RUF102",
|
||||
"RUF103",
|
||||
"RUF104",
|
||||
"RUF2",
|
||||
"RUF20",
|
||||
"RUF200",
|
||||
|
||||
Reference in New Issue
Block a user