Skip to content

Commit b6fb0c4

Browse files
authored
Make PSSA look for a file in the workspace root by default (#2484)
1 parent 495c7d9 commit b6fb0c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@
607607
},
608608
"powershell.scriptAnalysis.settingsPath": {
609609
"type": "string",
610-
"default": "",
610+
"default": "PSScriptAnalyzerSettings.psd1",
611611
"description": "Specifies the path to a PowerShell Script Analyzer settings file. To override the default settings for all projects, enter an absolute path, or enter a path relative to your workspace."
612612
},
613613
"powershell.codeFolding.enable": {

src/settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export function load(): ISettings {
124124

125125
const defaultScriptAnalysisSettings: IScriptAnalysisSettings = {
126126
enable: true,
127-
settingsPath: "",
127+
settingsPath: "PSScriptAnalyzerSettings.psd1",
128128
};
129129

130130
const defaultDebuggingSettings: IDebuggingSettings = {

0 commit comments

Comments
 (0)