Add cmdlet to suppress rules
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 474
- Forks
- 65
- Avg merge
- 22h 25m
- Merged PRs (30d)
- 26
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing how PSRule currently handles per-object suppressions and the ps-rule.yaml format. Compare a cmdlet that edits the file with generating a suppression group, preserving existing comments; done means the chosen approach supports rule suppression without breaking existing configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- cli, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100