mirror of
https://github.com/vbatts/git-validation.git
synced 2025-01-15 08:10: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:
commit
5a672d8f1c
2 changed files with 2 additions and 1 deletions
|
@ -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 a new issue