1
0
Fork 0
mirror of https://github.com/vbatts/git-validation.git synced 2025-01-15 16:20:07 +00:00

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: script:
- go vet -x ./... - go vet -x ./...
- golint ./... - golint -set_exit_status ./...
- go build . - go build .
- go test -v ./... - go test -v ./...
- ./git-validation -run DCO,short-subject,dangling-whitespace -v - ./git-validation -run DCO,short-subject,dangling-whitespace -v

View file

@ -19,6 +19,7 @@ func init() {
validate.RegisterRule(DanglingWhitespace) validate.RegisterRule(DanglingWhitespace)
} }
// ValidateDanglingWhitespace runs Git's check to look for whitespace errors.
func ValidateDanglingWhitespace(c git.CommitEntry) (vr validate.Result) { func ValidateDanglingWhitespace(c git.CommitEntry) (vr validate.Result) {
vr.CommitEntry = c vr.CommitEntry = c
vr.Msg = "commit does not have any whitespace errors" vr.Msg = "commit does not have any whitespace errors"