Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cmdlet to suppress rules #419

Open
BernieWhite opened this issue Feb 10, 2020 · 0 comments
Open

Add cmdlet to suppress rules #419

BernieWhite opened this issue Feb 10, 2020 · 0 comments
Labels
enhancement New feature or request feature: options Issues that affect options

Comments

@BernieWhite
Copy link
Member

BernieWhite commented Feb 10, 2020

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 BernieWhite added the enhancement New feature or request label Feb 10, 2020
@BernieWhite BernieWhite added the feature: options Issues that affect options label Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature: options Issues that affect options
Projects
None yet
Development

No branches or pull requests

1 participant