Skip to content

Add false positives warning #7

@peterjaap

Description

@peterjaap

Is your feature request related to a problem? Please describe.
After fixing an error for which a baseline entry exists, and running phpcs, nothing happens. There's no difference in output.

Describe the solution you'd like
I would like to receive a warning or error from this tool saying that even though I fixed the phpcs error, the baseline entry is still there in phpcs.baseline.xml.

Because right now, when somebody re-introduces the original error, it would not trigger a phpcs error/warning because it is still in the baseline, causing a false positive (or an unmatched ignored error).

Describe alternatives you've considered
No alternative

Additional context
PHPStan supports this ootb, it's the reportUnmatchedIgnoredErrors parameter, see https://phpstan.org/user-guide/baseline

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions