Skip to content

[Roadmap] Lint groups #6626

Open
Open

Description

There are more and more issues about managing lints in Clippy popping up. Lints
are hard to implement with a guarantee of no/few false positives (FPs). One way
to address this might be to introduce more lint groups to give users the ability
to better manage lints, or improve the process of classifying lints, so that
disabling lints due to FPs becomes rare. It is important to note, that Clippy
lints are less conservative than rustc lints, which won't change in the
future.

Steps to completion:

  • Add suspicious lint group
  • Start discussion about subdividing allow-by-default groups
  • Better define our expectations for lint groups (regarding FPs and strictness)
  • Make it possible to dump a statistics file when running Clippy (allowed lints, ...?)
  • CFP: Ask people to send us their Clippy statistic files, to help evaluate lints
  • Implement expect attribute (Tracking issue for RFC 2383, "Lint Reasons RFC" rust#54503)
  • Go over all lints and reassign lint groups
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-categoryArea: Categorization of lintsC-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesC-tracking-issueCategory: Tracking IssueP-lowPriority: Low

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions