(rule Rule, severity Severity, msg Commit)
| 131 | } |
| 132 | |
| 133 | func (l *Linter) runRule(rule Rule, severity Severity, msg Commit) (*Issue, bool) { |
| 134 | issue, isValid := rule.Validate(msg) |
| 135 | if isValid { |
| 136 | return nil, true |
| 137 | } |
| 138 | |
| 139 | issue.ruleName = rule.Name() |
| 140 | issue.severity = severity |
| 141 | return issue, false |
| 142 | } |
| 143 | |
| 144 | func (l *Linter) parserErrorRule(commitMsg string, err error) []*Issue { |
| 145 | var infos []string |