File tree 2 files changed +16
-10
lines changed
2 files changed +16
-10
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "DisableAll" : true ,
3
+ "Enable" : [
4
+ " unconvert" ,
5
+ " vet" ,
6
+ " gofmt" ,
7
+ " misspell" ,
8
+ " goconst" ,
9
+ " goimports" ,
10
+ " deadcode" ,
11
+ " ineffassign"
12
+ ]
13
+ }
Original file line number Diff line number Diff line change 6
6
7
7
install :
8
8
- go get -t ./...
9
- - go get github.com/client9/misspell/cmd/misspell
10
- - go get github.com/golang/lint/golint
11
- - go get honnef.co/go/staticcheck/cmd/staticcheck
12
- - go get github.com/kisielk/errcheck
9
+ - go get -u gopkg.in/alecthomas/gometalinter.v1
10
+ - gometalinter.v1 --install --force
13
11
14
12
script :
15
- - diff <(echo -n) <(gofmt -s -d .)
16
- - misspell -error .
17
- - go vet ./...
18
- - golint ./...
19
- - staticcheck ./...
20
- - errcheck ./...
13
+ - gometalinter.v1 --vendor -t --vendored-linters --deadline=2m --config .gometalinter.json ./...
21
14
- go test -v ./...
22
15
- CGO_ENABLED=0 go build -o asciize --ldflags "-extldflags \"-static\" -X main.BuildVersion=${TRAVIS_TAG:-0.0.0-dev}+${TRAVIS_BUILD_NUMBER}.${TRAVIS_COMMIT:0:7}" ./cmd/asciize
23
16
- sha1sum asciize > asciize.sha1
You can’t perform that action at this time.
0 commit comments