Open james-garriss opened 7 months ago
Probably the warnings trigger a response code 1 ?
What if you ignore such errors ? https://learn.microsoft.com/en-us/powershell/utility-modules/psscriptanalyzer/using-scriptanalyzer?view=ps-modules#suppressing-rules
Why would I ignore them? I still want them reported. I just want them to be reported correctly.
@james-garriss FYI there is a current PR about powershell errors counting, maybe you'll be interested by the result ? :)
Super cool. Thank you for the heads up and the good work.
Describe the bug
When MegaLinter runs PSScriptAnalyzer, and PSScriptAnalyzer reports no errors, MegaLinter reports that there were 12 errors.
To Reproduce
Expected behavior
I would expect MegaLinter to report the sum total number of errors that PSScriptAnalyzer finds, which is 0.
Screenshots
Results can be seen here: https://github.com/cisagov/ScubaGear/actions/runs/7130729734/job/19417770435