(rule Rule, severity Severity, msg Commit)
| 91 | } |
| 92 | |
| 93 | func (l *Linter) runRule(rule Rule, severity Severity, msg Commit) (*Issue, bool) { |
| 94 | issue, isValid := rule.Validate(msg) |
| 95 | if isValid { |
| 96 | return nil, true |
| 97 | } |
| 98 | |
| 99 | issue.ruleName = rule.Name() |
| 100 | issue.severity = severity |
| 101 | return issue, false |
| 102 | } |
| 103 | |
| 104 | func (l *Linter) parserErrorRule(commitMsg string, err error) []*Issue { |
| 105 | issue := NewIssue(err.Error()) |