We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0abb734 commit 0240606Copy full SHA for 0240606
linter.go
@@ -22,6 +22,12 @@ func NewLinter(conf *Config) *Linter {
22
func (l *Linter) Lint(commitMsg string) (lintReport string, hasError bool, err error) {
23
msg, err := parser.Parse(commitMsg)
24
if err != nil {
25
+ if parser.IsHeaderErr(err) {
26
+ res := NewResult()
27
+ // TODO: show more information
28
+ res.add(ErrorType, "commit header is not valid")
29
+ return l.formReport(msg, res), true, nil
30
+ }
31
return "", false, err
32
}
33
0 commit comments