Skip to content

Detect declared but unassigned variable #11

Description

@nhthn

If a variable is declared with var but nothing is assigned to it before its first use, it probably means that an assignment was forgotten somewhere. If the intention is to make the variable nil, it should be explicitly assigned as var foo = nil.

Metadata

Metadata

Assignees

No one assigned

    Labels

    linter featureFeature requests for the Linter

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions