Skip to content

Add checkstyle precommit for hidden/shadowed variables #19752

Open
@dakrone

Description

@dakrone

Checkstyle has the ability to detect when variables are shadowed by local variables: http://checkstyle.sourceforge.net/config_coding.html#HiddenField

We should enable this as it makes reading the code clearer, as well as reducing potential bugs with missing this. prefixes.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions