Skip to content

Lint !any(==) and similar #1334

Open
Open
@mcarton

Description

@mcarton

At work I have a VS plugin suggesting to change stuff like !foo.any(|bar| bar == baz) to foo.all(|bar| bar != baz). !any and !all can usually be simplified.
It would be nice if nonminimal_bool could suggest that too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lintsC-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.T-middleType: Probably requires verifiying types

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions