We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39cf565 commit 5e7943aCopy full SHA for 5e7943a
pkg/rules/rules.go
@@ -22,7 +22,11 @@ type RuleNamespace struct {
22
23
// AggregateBy Modifies the aggregation rules in groups to include a given Label.
24
func (r RuleNamespace) AggregateBy(label string) (int, int, error) {
25
+ // `count` represents the number of rules we evalated.
26
+ // `mod` represents the number of rules we modified - a modification can either be a lint or adding the
27
+ // label in the aggregation.
28
var count, mod int
29
+
30
for i, group := range r.Groups {
31
for j, rule := range group.Rules {
32
log.WithFields(log.Fields{"rule": getRuleName(rule)}).Debugf("evaluating...")
0 commit comments