Skip to content

Refactor unneeded-not checker #8789

@orSolocate

Description

@orSolocate

Current problem

A small suggestion to improve readability of this checker, since it covers not only the not keyword but also the != symbol.

Also in the description, it might not be perfectly clear what a unneeded negation is.

Desired solution

New name suggestion (or similar): redundant-negation

The description can be extended to this:

Used when a boolean expression contains an unneeded negation, e.g. when two negation operators cancel each other out.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Documentation 📗Enhancement ✨Improvement to a componentGood first issueFriendly and approachable by new contributorsNeeds PRThis issue is accepted, sufficiently specified and now needs an implementation

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions