Closed
Description
The errors from Script Analyzer when there is an error in a setting file are not actionable. There is nothing in $error, $stacktrace, etc. This error should be returned as a terminating error, not a warning - and should include the reason that the settings file was broken.
12 [C:\Users\leeholm]
>> '@{ Blah = $true }' > c:\temp\settings.psd1
13 [C:\Users\leeholm]
>> Invoke-ScriptAnalyzer -Path C:\temp\test.ps1 -Settings c:\temp\settings.psd1
WARNING: Cannot parse settings. Will abort the invocation.