PSRule icon indicating copy to clipboard operation
PSRule copied to clipboard

Add cmdlet to suppress rules

Open BernieWhite opened this issue 5 years ago • 0 comments

PSRule supports suppressing rules on a per object basis by target name. To suppress a rule, ps-rule.yaml is manually edited.

We should support suppressing a rule by a cmdlet. Something like Add-PSRuleSuppression.


Update: 2022-08-18

With this one we should consider if generating an suppression group makes more sense. Suppression groups provide more options and a generated suppression group will not break existing comments that might be in in ps-rule.yaml.

BernieWhite avatar Feb 10 '20 06:02 BernieWhite