mirror of
https://github.com/astral-sh/ruff
synced 2026-01-21 13:30:49 -05:00
As we surface rule names more to users we want them to be easier to type than PascalCase. Prior art: Pylint and ESLint also use kebab-case for their rule names. Clippy uses snake_case but only for syntactical reasons (so that the argument to e.g. #![allow(clippy::some_lint)] can be parsed as a path[1]). [1]: https://doc.rust-lang.org/reference/paths.html