Skip to content

Errors from incorrect settings files are not actionable #1053

Closed
@LeeHolmes

Description

@LeeHolmes

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions