update golangci to 1.10.2 (#1246)

This commit is contained in:
Adam Babik 2018-10-17 12:17:58 +02:00 committed by GitHub
parent b9baa48d87
commit b71058d73f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 16 deletions

View File

@ -3,8 +3,6 @@ run:
deadline: 1m deadline: 1m
issues-exit-code: 1 issues-exit-code: 1
tests: true tests: true
# build-tags:
# - mytag
skip-dirs: skip-dirs:
- static - static
skip-files: skip-files:
@ -35,19 +33,13 @@ linters-settings:
goconst: goconst:
min-len: 3 min-len: 3
min-occurrences: 2 min-occurrences: 2
# depguard:
# list-type: blacklist
# include-go-root: false
# packages:
# - github.com/davecgh/go-spew/spew
linters: linters:
disable-all: true disable-all: true
enable: enable:
- deadcode - deadcode
#- depguard
- errcheck - errcheck
- gas - gosec
- goconst - goconst
- gocyclo - gocyclo
- gofmt - gofmt
@ -66,9 +58,5 @@ linters:
issues: issues:
exclude: exclude:
- "composite literal uses unkeyed fields" # govet - "composite literal uses unkeyed fields" # govet
# exclude-use-default: true - "G304: Potential file inclusion via variable" # gosec
# max-per-linter: 0 - "G104: Errors unhandled." #gosec
# max-same: 0
# new: false
# new-from-rev: ""
# new-from-patch: ""

View File

@ -255,7 +255,7 @@ test-e2e-race: test-e2e ##@tests Run e2e tests with -race flag
lint-install: lint-install:
@# The following installs a specific version of golangci-lint, which is appropriate for a CI server to avoid different results from build to build @# The following installs a specific version of golangci-lint, which is appropriate for a CI server to avoid different results from build to build
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $(GOPATH)/bin v1.9.1 curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $(GOPATH)/bin v1.10.2
lint: lint:
@echo "lint" @echo "lint"