You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Invoke-ScriptAnalyzer does not report a parse failure in a param() block caused by a missing parameter separator comma. #2192
changed the title [-]Invoke-ScriptAnalyzer does not report a parse failure for a script containing a malformed param() block caused by a missing parameter separator comma.[/-][+]Invoke-ScriptAnalyzer does not report a parse failure in a param() block caused by a missing parameter separator comma.[/+]on Jul 17, 2026
Huh! I'm an idiot!I never knew! 😁 Thank you very much!!! Please close issue!
P.S. On my version: get-help Invoke-ScriptAnalyzer -parameter Severity gives:
-Severity <String[]>
After running Script Analyzer with all rules, this parameter selects rule violations with the specified severity.
Valid values are:
- Error
- Warning
- Information.
You can specify one ore more severity values.
Activity
[-]Invoke-ScriptAnalyzer does not report a parse failure for a script containing a malformed param() block caused by a missing parameter separator comma.[/-][+]Invoke-ScriptAnalyzer does not report a parse failure in a param() block caused by a missing parameter separator comma.[/+]liamjpeters commentedon Jul 20, 2026
👋 Fabby (@FabrizioMarana),
This is expected. There are actually 4 severities.
Information,Warning,Error,ParseError.Your example asks only for the
Errorseverity diagnostics. Either omit it, or ask for theParseErrorseverity diagnostics.Hope that helps!
FabrizioMarana commentedon Jul 20, 2026
Huh!
I'm an idiot!I never knew! 😁 Thank you very much!!! Please close issue!P.S. On my version:
get-help Invoke-ScriptAnalyzer -parameter Severitygives:but ParseError does work!!! 🎉
liamjpeters commentedon Jul 20, 2026
Thanks for flagging the docs issue 🙂! I've raised a PR to get that fixed.