We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Summary of the new feature
PowerShell code used in official examples and VS Code code generation seems to follow some basic casing conventions:
if
foreach
I would like to optionally enforce these casing conventions with PSScriptAnalyzer.
Proposed technical implementation details (optional)
I would like to enable rules in my PSScriptAnalyzerSettings.psd1 that enforce the casing rules above and autofix casing issues.
What is the latest version of PSScriptAnalyzer at the point of writing 1.18.2
The text was updated successfully, but these errors were encountered:
I added a new rule usecorrectCasing that does it for cmdlet names as a starter. This rule can be enhanced for some of your cases.
Sorry, something went wrong.
Opened #1401 for casing of automatic variables.
No branches or pull requests
Summary of the new feature
PowerShell code used in official examples and VS Code code generation seems to follow some basic casing conventions:
if
,foreach
, etc)I would like to optionally enforce these casing conventions with PSScriptAnalyzer.
Proposed technical implementation details (optional)
I would like to enable rules in my PSScriptAnalyzerSettings.psd1 that enforce the casing rules above and autofix casing issues.
What is the latest version of PSScriptAnalyzer at the point of writing
1.18.2
The text was updated successfully, but these errors were encountered: