Skip to content

Commit 86a7c23

Browse files
bergmeisterChristoph Bergmeister (MVP)
authored and
Christoph Bergmeister (MVP)
committed
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 971f766 commit 86a7c23

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
@@ -687,6 +687,11 @@
687687
"default": true,
688688
"description": "Align assignment statements in a hashtable or a DSC Configuration."
689689
},
690+
"powershell.codeFormatting.useCorrectCasing": {
691+
"type": "boolean",
692+
"default": true,
693+
"description": "Use correct casing for cmdlets."
694+
},
690695
"powershell.integratedConsole.showOnStartup": {
691696
"type": "boolean",
692697
"default": true,

src/settings.ts

+2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export interface ICodeFormattingSettings {
5454
WhitespaceAroundPipe: true;
5555
ignoreOneLineBlock: boolean;
5656
alignPropertyValuePairs: boolean;
57+
useCorrectCasing: boolean;
5758
}
5859

5960
export interface IScriptAnalysisSettings {
@@ -143,6 +144,7 @@ export function load(): ISettings {
143144
WhitespaceAroundPipe: true,
144145
ignoreOneLineBlock: true,
145146
alignPropertyValuePairs: true,
147+
useCorrectCasing: true,
146148
};
147149

148150
const defaultIntegratedConsoleSettings: IIntegratedConsoleSettings = {

0 commit comments

Comments
 (0)