ruff
Remove `Message::to_rule`
#18447
Merged

Remove `Message::to_rule` #18447

ntBre merged 19 commits into main from brent/remove-to-rule
ntBre
ntBre replace one call with to_url
0302b9c8
ntBre store the rule_name instead of rule in the cache
4f71b7ec
ntBre avoid converting to Rule to collect rule codes, use Rule on output
a779e5ca
ntBre avoid to_rule for sarif output format
6e2f0590
ntBre use Vec<NoqaCode> directly instead of constructing a RuleSet
c030bfad
ntBre convert Rule from noqa_code in some tests
de723880
ntBre avoid to_rule in ruff_server
2269ff9d
ntBre use my TODO idea for to_url
46d2e9e3
ntBre delete Message::to_rule
43277a15
ntBre ntBre added internal
ntBre ntBre added diagnostics
github-actions
ntBre ntBre marked this pull request as ready for review 1 year ago
ntBre ntBre requested a review from MichaReiser MichaReiser 1 year ago
ntBre ntBre marked this pull request as draft 1 year ago
ntBre ntBre marked this pull request as ready for review 1 year ago
MichaReiser
MichaReiser approved these changes on 2025-06-04
MichaReiser
ntBre restore CacheMessage::rule, parse the name on input
2e90bd19
ntBre Message::to_noqa_code -> noqa_code
62e42d90
ntBre add Rule::name, remove AsRefStr impl, many pub to pub(crate)
17888e53
ntBre
ntBre avoid Rule::from_code in pyflakes
73347b74
ntBre make FixTable a struct and store the rule name along with the code
0c22912a
ntBre use HashSet instead of Vec for noqa_codes, closer to RuleSet
96a6ba21
ntBre fix wasm build
71e658ab
ntBre
ntBre commented on 2025-06-04
ntBre fix count destructuring
51ab8306
ntBre Merge branch 'main' into brent/remove-to-rule
2d2c05f4
ntBre improve FixTable interface
13a586c6
MichaReiser
MichaReiser commented on 2025-06-05
ntBre ntBre merged ce216c79 into main 1 year ago
ntBre ntBre deleted the brent/remove-to-rule branch 1 year ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone