Skip to content

Commit 5a672d8

Browse files
authored
Merge pull request #28 from wking/golint-exit-status
.travis.yml: Add '-set_exit_status' to golint invocation
2 parents ac0930a + 094999a commit 5a672d8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ install: true
2323

2424
script:
2525
- go vet -x ./...
26-
- golint ./...
26+
- golint -set_exit_status ./...
2727
- go build .
2828
- go test -v ./...
2929
- ./git-validation -run DCO,short-subject,dangling-whitespace -v

rules/danglingwhitespace/rule.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ func init() {
1919
validate.RegisterRule(DanglingWhitespace)
2020
}
2121

22+
// ValidateDanglingWhitespace runs Git's check to look for whitespace errors.
2223
func ValidateDanglingWhitespace(c git.CommitEntry) (vr validate.Result) {
2324
vr.CommitEntry = c
2425
vr.Msg = "commit does not have any whitespace errors"

0 commit comments

Comments
 (0)