Rule categorization · Issue #1774 · astral-sh/ruff (original) (raw)

I think there are two perspectives ruff users may have:

The README currently groups rules by their origin. Which I think is suboptimal for both cases. For the first case our README only lists the lints implemented by ruff but doesn't tell you which (or how many) lints ruff is missing. For the second case you don't actually care about where the lints are coming from, you just want to see them grouped by topic.

So I think we should steal a nice feature from Clippy which are lint categories. Clippy has the following categories:

We could simply use the same categorization (except with cargo instead being pyproject as per #1472). I think we would however need some additional categories since there are several lint categories that Rust does not need, for example:

What do you think about this?