Skip to content

Commit f0e2989

Browse files
author
Marc Guasch
committed
Use gometalinter
1 parent 2df2dc0 commit f0e2989

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

.gometalinter.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"DisableAll": true,
3+
"Enable": [
4+
"unconvert",
5+
"vet",
6+
"gofmt",
7+
"misspell",
8+
"goconst",
9+
"goimports",
10+
"deadcode",
11+
"ineffassign"
12+
]
13+
}

.travis.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,11 @@ go:
66

77
install:
88
- 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
1311

1412
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 ./...
2114
- go test -v ./...
2215
- 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
2316
- sha1sum asciize > asciize.sha1

0 commit comments

Comments
 (0)