Invoke-ScriptAnalyzer: Include parse errors in reported error count by MatejKafka · Pull Request #2069 · PowerShell/PSScriptAnalyzer

PR Summary

Previously, parse error were not reported in the summary. With this PR, the exit code from -EnableExit matches the number of diagnostics reported by -ReportSummary and parse errors are included under errors. Since -ReportSummary output is sent directly to the host, I don't believe this to be a breaking change.

PR Checklist