diff --git a/.travis.yml b/.travis.yml index 0d0cde8..5fcc0bf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,7 +23,7 @@ install: true script: - go vet -x ./... - - golint ./... + - golint -set_exit_status ./... - go build . - go test -v ./... - ./git-validation -run DCO,short-subject,dangling-whitespace -v diff --git a/rules/danglingwhitespace/rule.go b/rules/danglingwhitespace/rule.go index 122c746..14ad034 100644 --- a/rules/danglingwhitespace/rule.go +++ b/rules/danglingwhitespace/rule.go @@ -19,6 +19,7 @@ func init() { validate.RegisterRule(DanglingWhitespace) } +// ValidateDanglingWhitespace runs Git's check to look for whitespace errors. func ValidateDanglingWhitespace(c git.CommitEntry) (vr validate.Result) { vr.CommitEntry = c vr.Msg = "commit does not have any whitespace errors"