We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af6bef3 commit 53bd7f4Copy full SHA for 53bd7f4
scripts/main.ps1
@@ -8,10 +8,8 @@ $settingsFilePath = $null
8
if (-not [string]::IsNullOrEmpty($env:PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_SettingsFilePath)) {
9
try {
10
$resolvedPath = Resolve-Path -Path $env:PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_SettingsFilePath -ErrorAction Stop | Select-Object -ExpandProperty Path
11
- if (Test-Path -Path $resolvedPath) {
12
- $settingsFilePath = $resolvedPath
13
- Write-Information "Using settings file: $settingsFilePath"
14
- }
+ $settingsFilePath = $resolvedPath
+ Write-Information "Using settings file: $settingsFilePath"
15
} catch {
16
Write-Warning "Settings file not found at path: $($env:PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_SettingsFilePath). Using default settings."
17
}
0 commit comments