Report diagnostics for invalid/unmatched range suppression comments #21908
Define rule codes RUF103/104 for invalid/unmatched suppression comments
90f82c10
Report RUF104 unmatched suppression diagnostics
976a52c3
amyreese
force pushed
from
282450e3
to
7e9def93
51 days ago
Report invalid suppression diagnostics
05f63c91
Todos
aa913534
amyreese
changed the title Report diagnostics for unmatched range suppression comments Report diagnostics for invalid/unmatched range suppression comments 51 days ago
Fix test cases causing panics
ebf01217
Move rule-enabled checks to local logic, extract some bits
2b6dc036
Generate invalid rule code diagnostics
bcd93740
Target the diagnostic at the code even if only one code in comment
58f57348
clippy
4793f52b
Document that implicit ranges will produce RUF104
c50026e3
amyreese
force pushed
from
100ed3f2
to
999a481e
50 days ago
amyreese
marked this pull request as ready for review 50 days ago
ntBre
commented
on 2025-12-12
Add test case covering external rules
a6e9ca85
Correct pub usage
6cee82d2
Improve documentation for unmatched diagnostic
5b7d82ba
Mark invalid comment diagnostics as unsafe fixes
b659b5b7
Update test snapshots
83706a90
update wording in invalid rule code diagnostics
5c112af0
Revert "Target the diagnostic at the code even if only one code in co…
0f3c74f6
Avoid unnecessary assignments
f5532fff
Use itertools unique
ea17270d
Handle external codes and redirects
b90f418e
Reorganize check_suppressions to iterate over valid/errors only once
5bdf0497
amyreese
force pushed
from
8a54e011
to
5bdf0497
44 days ago
clippy
0548374e
Fix docs
bafc629c
Only target the invalid rule code
a6c73ae1
Treat missing codes as invalid suppression comment, update error message
0e8b8aa8
Better implementation of highlighting only code for invalid rule codes
5f5bd056
More test cases, improve error/fix wording
b14a6ac1
Update comment to clarify unused external codes
78e85941
amyreese
merged
3d334a31
into main 43 days ago
amyreese
deleted the amy/unmatched-suppressions branch 43 days ago
Assignees
No one assigned
Login to write a write a comment.
Login via GitHub