Closed raandree closed 2 months ago
Currently it doesn't look like you can supress a specific rule if it's marked as required.
You could add the following into the build.yml
as a work around.
Pester:
ExcludeTag:
- RequiredPSSA
Thanks, @dan-hughes, that did it.
I also pushed a new full release yesterday, have that resolved this as well?
@johlju, I'm not sure the fix I made will resolve this as that for Pester 4. It doesn't look like required rules can be suppressed, especially in the Pester 5 script version.
I want to use this module for checking the code in DscBuildHelpers. Some functions however are much more helpful if they write something to the console. I am trying to suppress the rule 'PSAvoidUsingWriteHost' by following this recommendation. Now I have this error:
How can I allow calls to
Write-Host
and still make use of this module?