Merge pull request #28 from wking/golint-exit-status
.travis.yml: Add '-set_exit_status' to golint invocation
This commit is contained in:
commit
5a672d8f1c
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue