ruff/crates/ruff_cli
Aarni Koskela 24bcbb85a1
Rework upstream categories so we can all_rules() (#5591)
## Summary

This PR reworks the `upstream_categories` mechanism that is only used
for documentation purposes to make it easier to generate docs using
`all_rules()`. The new implementation also relies on "tribal knowledge"
about rule codes, so it's not the best implementation, but gets us
forward.

Another option would be to change the rule-defining proc macros to allow
configuring an optional `RuleCategory`, but that seems more heavy-handed
and possibly unnecessary in the long run...

Draft since this builds on #5439.

cc @charliermarsh :)
2023-07-10 09:41:26 -04:00
..
resources/test/fixtures Keep track of when files are last seen in the cache (#5214) 2023-06-23 15:40:35 +02:00
src Rework upstream categories so we can all_rules() (#5591) 2023-07-10 09:41:26 -04:00
tests Add rule documentation URL to JSON output (#5187) 2023-06-19 21:09:15 +00:00
Cargo.toml Run cargo update (#5534) 2023-07-05 12:34:15 -04:00