Skip to content

LowercasePatternMatchChecker should not warn when matched variable is used in result #33

Description

@FlashSheridan

In the examples for LowercasePatternMatchChecker, the lower-case match is obviously a mistake, since the variable masks an existing one, and is not used on the right side of the “=>”. But in scanning our existing code base, there were multiple reports where the code behaved as intended, and the match was actually used.
I accept that avoiding lower-case variables in this situation may be useful style for a new code base, but our uses are not actual semantic problems. It would be useful to be able to suppress these warnings, without suppressing genuine bugs where an existing variable is masked by a lower-case match.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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