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
Summary of the new feature
Incorrect case of automatic variables should result in a PSUseCorrectCasing rule violation.
Proposed technical implementation details (optional)
Code using
$errorshould result in a rule violationReplacement with
$Errorshould be suggested as a fix.What is the latest version of PSScriptAnalyzer at the point of writing
1.18.3