Skip to content

Update PSAvoidAssignmentToAutomaticVariable to detect more automatic variables #1183

Closed
@jegannathanmaniganadan

Description

@jegannathanmaniganadan

I think this rule detects only limited number of automatic variables, we should probably update this with https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_automatic_variables?view=powershell-6

I am not sure whats the reason behind having only limited number of variables (may be they are read-only ?). But the rule name conveys different meaning.

We should change the rule name or let it flag all the automatic variable or make it ConfigurableRule

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