Skip to content

Feature request: ability to only lint a specific file #13103

Open
@lolbinarycat

Description

@lolbinarycat

Description

this feature would ignore warnings in all files except the one that was specifically requested.

this would be mainly useful for contributing to large projects that do not use clippy as part of CI, as you want to check for mistakes in your code, not code that everyone else wrote.

this would be equivalent to setting #![allow(clippy::all)] in the crate root, then adding #![warn(clippy::all)] in the specified file, but without the inconvenience of temporary edits.

Version

No response

Additional Labels

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: Enhancement of lints, like adding more cases or adding help messages

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions