new module for parsing ranged suppressions #21441
New module for parsing generic ruff suppressions
02c8fd95
Add errors and test cases to exercise new parsing
8b938c65
Fix lint
2b95dcd9
Drop reference to ignore directive
fb4acfef
Basic suppression comment matching
39d7e16b
Replace CommentRanges based builder with Tokens based builder, some r…
fcb2e94f
amyreese
force pushed
from
5ebddd76
to
34f19b16
129 days ago
Move from usize to strings for tracking indents, better match target
e7d79afa
amyreese
force pushed
from
34f19b16
to
7c1629ac
128 days ago
amyreese
force pushed
from
7c1629ac
to
88a71a01
128 days ago
Track a reason that a comment is considered invalid
9f3a1789
Ignore `#ruff:noqa` file level suppressions for now
8c581c96
More comments of what's happening
3c17bfbf
amyreese
force pushed
from
dfd4fa35
to
ef8f399a
125 days ago
amyreese
deleted the suppression-parsing branch 125 days ago
amyreese
restored the head branch 125 days ago
amyreese
marked this pull request as ready for review 125 days ago
amyreese
changed the title [ruff] new module for parsing suppression comments [ruff] new module for parsing ranged suppressions 125 days ago
Add copy to enums
15ba2b9a
Avoid cloning in load_from_tokens
606a9d4d
Use CompactString for suppression code
741ff542
Avoid creating interim vector in codes_as_str
b02b0e04
Lint allow -> expect
09a5b4ca
Reorder methods for style
82c18c3d
Move indent out of SuppressionComment struct
e246e9ba
Remove prototype usage from linter
93966c45
MichaReiser
changed the title [ruff] new module for parsing ranged suppressions new module for parsing ranged suppressions 123 days ago
Replace String with &str, use indentation helper, drop current_indent
9bb2ab32
Simplify comment matching check, assume forward search
35f5b225
amyreese
force pushed
from
ce146176
to
607325ec
118 days ago
Debug formatting for test snapshots
e6ce3f51
clippy
b0cc57b6
More test cases
ac219fec
amyreese
force pushed
from
a09899fd
to
ea5b48de
118 days ago
Support implicitly-matched range suppressions
b1da0647
nits
538deeff
tokens come from ast crate now
288d4319
amyreese
force pushed
from
ea5b48de
to
288d4319
117 days ago
amyreese
merged
abaa49f5
into main 117 days ago
amyreese
deleted the suppression-parsing branch 117 days ago
Assignees
No one assigned
Login to write a write a comment.
Login via GitHub