Skip to content

Warn on Undeclared Variable #483

@mattmcnabb

Description

@mattmcnabb

There is currently a rule that warns when I have assigned a variable but haven't called it (UseDeclaredVarsMoreThanAssignments), however, there doesn't appear to be a rule that warns me if I have used a variable that hasn't been assigned.

Is this a possibility? I can definitely see there would be some challenges around implementing it correctly, but this would be a useful warning.

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