mirror of
https://github.com/kyverno/policy-reporter.git
synced 2024-12-14 11:57:32 +00:00
dd4629ae4f
* Refactor filter logic Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
10 lines
154 B
Go
10 lines
154 B
Go
package validate
|
|
|
|
type RuleSets struct {
|
|
Exclude []string
|
|
Include []string
|
|
}
|
|
|
|
func (r RuleSets) Count() int {
|
|
return len(r.Exclude) + len(r.Include)
|
|
}
|