Skip to content

Commit a7ddcdd

Browse files
committed
tests(ci): add golint code checker to travis-ci.org config
1 parent b74119e commit a7ddcdd

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.travis.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ go:
99
- 1.2.1
1010
- tip
1111

12-
install: go get -d -v ./... && go build -v .
12+
before_install:
13+
- go get -v github.com/golang/lint/golint
1314

14-
script: go test -v .
15+
install:
16+
- go get -d -v ./... && go build -v .
17+
18+
script:
19+
- $HOME/gopath/bin/golint .
20+
- go test -v .

docopt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ func (p *pattern) match(left *patternList, collected *patternList) (bool, *patte
947947
// could it be that something didn't match but changed l or c?
948948
matched, l, c = p.children[0].match(l, c)
949949
if matched {
950-
times += 1
950+
times++
951951
}
952952
if lAlt == l {
953953
break

0 commit comments

Comments
 (0)