(commitMsg string, err error)
| 142 | } |
| 143 | |
| 144 | func (l *Linter) parserErrorRule(commitMsg string, err error) []*Issue { |
| 145 | var infos []string |
| 146 | if line, col, ok := commit.DiagnosticPosition(commitMsg, err); ok { |
| 147 | infos = []string{fmt.Sprintf("line %d, column %d", line, col)} |
| 148 | } |
| 149 | issue := NewIssue(err.Error(), infos...) |
| 150 | issue.ruleName = "parser" |
| 151 | issue.severity = SeverityError |
| 152 | return []*Issue{issue} |
| 153 | } |
no test coverage detected