Ignore golint errors that can't be fixed

Stop duplicating checkers in .travis.yml - use Makefile as definitive source
s3-about
Nick Craig-Wood 2015-11-14 09:20:34 +00:00
parent fcea3777c0
commit 46696865fd
2 changed files with 5 additions and 6 deletions

View File

@ -15,12 +15,11 @@ go:
install:
- go get ./...
- go get -u github.com/golang/lint/golint
- go get -u github.com/kisielk/errcheck
- go get -u golang.org/x/tools/cmd/goimports
- go get -u github.com/golang/lint/golint
script:
- go vet ./...
- diff <(goimports -d .) <(printf "")
- diff <(golint ./...) <(printf "")
- make check
- go test -v ./...
- go test -cpu=2 -race -v ./...

View File

@ -14,8 +14,8 @@ test: rclone
check: rclone
go vet ./...
errcheck ./...
golint ./...
diff <(goimports -d .) <(printf "")
goimports -d . | grep . ; test $$? -eq 1
golint ./... | grep -E -v '(StorageUrl|CdnUrl)' ; test $$? -eq 1
doc: rclone.1 MANUAL.html MANUAL.txt