diff --git a/pkg/rulefmt/rulefmt.go b/pkg/rulefmt/rulefmt.go index 1d6716beb..899ab2738 100644 --- a/pkg/rulefmt/rulefmt.go +++ b/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, })