Skip to content

Commit 4c826b3

Browse files
bergmeisterTylerLeonhardt
authored andcommitted
Add new powershell.useCorrectCasingsettings for new rule in PSSA 1.18: PSUseCorrectCasing (#1687)
* Add powershell.codeformatting.pipelineIndentationStyle setting * add UseCorrectCasing * Revert "Add powershell.codeformatting.pipelineIndentationStyle setting" This reverts commit a5487d7. * fix comma * Update package.json
1 parent 1738ab8 commit 4c826b3

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

package.json

+5
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,11 @@
672672
"default": true,
673673
"description": "Align assignment statements in a hashtable or a DSC Configuration."
674674
},
675+
"powershell.codeFormatting.useCorrectCasing": {
676+
"type": "boolean",
677+
"default": true,
678+
"description": "Use correct casing for cmdlets."
679+
},
675680
"powershell.integratedConsole.showOnStartup": {
676681
"type": "boolean",
677682
"default": true,

src/settings.ts

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export interface ICodeFormattingSettings {
4545
whitespaceAfterSeparator: boolean;
4646
ignoreOneLineBlock: boolean;
4747
alignPropertyValuePairs: boolean;
48+
useCorrectCasing: boolean;
4849
}
4950

5051
export interface IScriptAnalysisSettings {
@@ -131,6 +132,7 @@ export function load(): ISettings {
131132
whitespaceAfterSeparator: true,
132133
ignoreOneLineBlock: true,
133134
alignPropertyValuePairs: true,
135+
useCorrectCasing: true,
134136
};
135137

136138
const defaultIntegratedConsoleSettings: IIntegratedConsoleSettings = {

0 commit comments

Comments
 (0)