Browse Source

Change rule index numbering from 0 to n+1 on errors found in rule files (#7495)

* Change rule index numbering from 0 to n+1 on errors found in rule files

Signed-off-by: Mikael Johansson <mik.json@gmail.com>
pull/7463/head
Mikael Johansson 4 years ago committed by GitHub
parent
commit
a98be49c52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pkg/rulefmt/rulefmt.go

2
pkg/rulefmt/rulefmt.go

@ -90,7 +90,7 @@ func (g *RuleGroups) Validate(node ruleGroups) (errs []error) {
}
errs = append(errs, &Error{
Group: g.Name,
Rule: i,
Rule: i + 1,
RuleName: ruleName.Value,
Err: node,
})

Loading…
Cancel
Save