Skip to content

Update PSUseCorrectCasing to enforce correct casing of automatic variables #1401

Open
@xtqqczze

Description

@xtqqczze

Summary of the new feature

Incorrect case of automatic variables should result in a PSUseCorrectCasing rule violation.

Proposed technical implementation details (optional)

Code using $error should result in a rule violation

Replacement with $Error should be suggested as a fix.

What is the latest version of PSScriptAnalyzer at the point of writing

1.18.3

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