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>
This commit is contained in:
Mikael Johansson 2020-07-02 12:09:01 +02:00 committed by GitHub
parent aa452d8ab4
commit a98be49c52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
})