Update to golangci-lint 1.9.1. Get rid of standalone misspell linter.
This commit is contained in:
parent
4f9a7a908e
commit
7c51f9a382
|
@ -56,16 +56,16 @@ linters:
|
||||||
- ineffassign
|
- ineffassign
|
||||||
- interfacer
|
- interfacer
|
||||||
- megacheck
|
- megacheck
|
||||||
#- misspell
|
- misspell
|
||||||
- structcheck
|
- structcheck
|
||||||
- typecheck
|
- typecheck
|
||||||
- unconvert
|
- unconvert
|
||||||
- varcheck
|
- varcheck
|
||||||
fast: false
|
fast: false
|
||||||
|
|
||||||
# issues:
|
issues:
|
||||||
# exclude:
|
exclude:
|
||||||
# - abcdef
|
- "composite literal uses unkeyed fields" # govet
|
||||||
# exclude-use-default: true
|
# exclude-use-default: true
|
||||||
# max-per-linter: 0
|
# max-per-linter: 0
|
||||||
# max-same: 0
|
# max-same: 0
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -218,14 +218,12 @@ test-e2e-race: gotest_extraflags=-race
|
||||||
test-e2e-race: test-e2e ##@tests Run e2e tests with -race flag
|
test-e2e-race: test-e2e ##@tests Run e2e tests with -race flag
|
||||||
|
|
||||||
lint-install:
|
lint-install:
|
||||||
go get -u github.com/client9/misspell/cmd/misspell
|
|
||||||
@# 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.6.1
|
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $(GOPATH)/bin v1.9.1
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
@echo "lint"
|
@echo "lint"
|
||||||
@golangci-lint run ./...
|
@golangci-lint run ./...
|
||||||
@find . -type f -not -path "./.ethereumtest/*" -not -path "./vendor/*" -not -path "./extkeys/mnemonic.go" -not -path "./extkeys/mnemonic_vectors.json" -print0 | xargs -0 misspell
|
|
||||||
|
|
||||||
ci: lint mock dep-ensure test-unit test-e2e ##@tests Run all linters and tests at once
|
ci: lint mock dep-ensure test-unit test-e2e ##@tests Run all linters and tests at once
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue