forked from TrueCloudLab/rclone
Ignore golint errors that can't be fixed
Stop duplicating checkers in .travis.yml - use Makefile as definitive source
This commit is contained in:
parent
fcea3777c0
commit
46696865fd
2 changed files with 5 additions and 6 deletions
|
@ -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 ./...
|
||||
|
|
4
Makefile
4
Makefile
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue