ruff/ruff_cli/src
Martin Fischer 4e4643aa5d refactor: Decouple Rule from linter prefixes
543865c96b introduced
RuleCode::origin() -> RuleOrigin generation via a macro, while that
signature now has been renamed to Rule::origin() -> Linter we actually
want to get rid of it since rules and linters shouldn't be this tightly
coupled (since one rule can exist in multiple linters).

Another disadvantage of the previous approach was that the prefixes
had to be defined in ruff_macros/src/prefixes.rs, which was easy to
miss when defining new linters in src/*, case in point
INP001 => violations::ImplicitNamespacePackage has in the meantime been
added without ruff_macros/src/prefixes.rs being updated accordingly
which resulted in `ruff --explain INP001` mistakenly reporting that the
rule belongs to isort (since INP001 starts with the isort prefix "I").
The derive proc macro introduced in this commit requires every variant
to have at least one #[prefix = "..."], eliminating such mistakes.
2023-01-20 20:25:57 -05:00
..
cache.rs refactor: Split CliSettings from Settings 2023-01-15 15:19:42 -05:00
cli.rs refactor: Rename RuleCodePrefix to RuleSelector 2023-01-20 20:25:57 -05:00
commands.rs refactor: Decouple Rule from linter prefixes 2023-01-20 20:25:57 -05:00
diagnostics.rs refactor: Split CliSettings from Settings 2023-01-15 15:19:42 -05:00
iterators.rs Split off ruff_cli crate from ruff library 2023-01-13 21:37:54 -05:00
lib.rs Add top-level doc comments for crates 2023-01-14 10:11:30 -05:00
main.rs Fix that --explain panics 2023-01-19 12:58:44 -05:00
printer.rs Added pylint formatter (#1995) 2023-01-19 08:01:27 -05:00
updates.rs Split off ruff_cli crate from ruff library 2023-01-13 21:37:54 -05:00