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
run PSScriptAnalyzer to analyze build.ps1. If not add -SuppressedOnly parameter, it only outputs non-suppressed results. So I add -SuppressedOnly parameter to see suppressed results.
If one rule suppressed twice in the same line, it needs to have a list of suppressions for the diagnostic.
Actual behavior
RuleName Severity ScriptName Line Justification
-------- -------- ---------- ---- -------------
PSAvoidUsingWriteHost Warning build.ps1 9 aa
PSAvoidUsingWriteHost Warning build.ps1 9 bb
The results seem like the existing implementation generates an output for each suppression, rather than each diagnostic.
So it's maybe better to have a list of suppressions for each diagnostic.
Environment data
>$PSVersionTable
Name Value
---------
PSVersion 5.1.19041.1023
PSEdition Desktop
PSCompatibleVersions {1.0,2.0,3.0,4.0...}
BuildVersion 10.0.19041.1023
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
The text was updated successfully, but these errors were encountered:
Steps to reproduce
Now I suppressed one rule twice in “function start-bar”.
Expected behavior
If one rule suppressed twice in the same line, it needs to have a list of suppressions for the diagnostic.
Actual behavior
The results seem like the existing implementation generates an output for each suppression, rather than each diagnostic.
So it's maybe better to have a list of suppressions for each diagnostic.
Environment data
The text was updated successfully, but these errors were encountered: