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
I'm experiencing an issue with function-based custom rules. When a custom rule returns a severity of Error, the results don't appear under the -Severity Error filter. Instead, they show up only when filtering by warnings or when no filter is applied.
I couldn’t find any other reports of a similar issue. The closest I came across was #1237, but it seems unanswered or possibly overlooked.
I'm experiencing an issue with function-based custom rules. When a custom rule returns a severity of
Error
, the results don't appear under the-Severity Error
filter. Instead, they show up only when filtering by warnings or when no filter is applied.I couldn’t find any other reports of a similar issue. The closest I came across was #1237, but it seems unanswered or possibly overlooked.
The use-case here is for demonstration purposes.
Steps to reproduce
Custom Rule (Measure-AvoidCustomInvokeExpression.psm1)
Test Script (Invoke-GetProcess.ps1)
Expected behavior
Actual behavior
Used with
-Severity Error
Used with
-Severity Warning
Environment data
Windows 11
Manjaro 6.6.63-1
The text was updated successfully, but these errors were encountered: