diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..15eb6ef --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,21 @@ +run: + timeout: 5m + linters: + enable: + - vet + - vetshadow + - typecheck + - deadcode + - gocyclo + - golint + - varcheck + - structcheck + - maligned + - ineffassign + - misspell + - unparam + - goimports + - goconst + - unconvert + - errcheck + - interfacer diff --git a/.travis.yml b/.travis.yml index 13585d4..46997ab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,7 @@ language: go go: - - 1.10.x + - 1.13.10 install: - - go get github.com/golang/lint/golint - - go get github.com/fzipp/gocyclo - - go get github.com/client9/misspell/... - - go get github.com/gordonklaus/ineffassign + - go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.24.0 + - go build script: ./hooks/pre-commit