Merge pull request #28 from wking/golint-exit-status

.travis.yml: Add '-set_exit_status' to golint invocation
This commit is contained in:
Vincent Batts 2017-04-27 14:08:32 -04:00 committed by GitHub
commit 5a672d8f1c
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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"