Skip to content

Commit 4497c2f

Browse files
author
Pedro Pombeiro
committed
Update to golangci-lint 1.8.1. Get rid of standalong misspell linter.
1 parent 327299d commit 4497c2f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.golangci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ run:
66
# build-tags:
77
# - mytag
88
skip-dirs:
9+
- lib/* # Can't run linter govet: can't run govet on source packages: can't read "lib/C": open lib/C: no such file ordirector
10+
- signal/* # Can't run linter govet: can't run govet on source packages: can't read "signal/C": open signal/C: no such file ordirector
911
- static
1012
skip-files:
1113
- .*_mock.go
@@ -56,16 +58,16 @@ linters:
5658
- ineffassign
5759
- interfacer
5860
- megacheck
59-
#- misspell
61+
- misspell
6062
- structcheck
6163
- typecheck
6264
- unconvert
6365
- varcheck
6466
fast: false
6567

66-
# issues:
67-
# exclude:
68-
# - abcdef
68+
issues:
69+
exclude:
70+
- "composite literal uses unkeyed fields" # govet
6971
# exclude-use-default: true
7072
# max-per-linter: 0
7173
# max-same: 0

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,14 +195,12 @@ test-e2e-race: gotest_extraflags=-race
195195
test-e2e-race: test-e2e ##@tests Run e2e tests with -race flag
196196

197197
lint-install:
198-
go get -u github.com/client9/misspell/cmd/misspell
199198
@# The following installs a specific version of golangci-lint, which is appropriate for a CI server to avoid different results from build to build
200-
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $(GOPATH)/bin v1.6.1
199+
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $(GOPATH)/bin v1.8.1
201200

202201
lint:
203202
@echo "lint"
204203
@golangci-lint run ./...
205-
@find . -type f -not -path "./.ethereumtest/*" -not -path "./vendor/*" -not -path "./extkeys/mnemonic.go" -not -path "./extkeys/mnemonic_vectors.json" -print0 | xargs -0 misspell
206204

207205
ci: lint mock dep-ensure test-unit test-e2e ##@tests Run all linters and tests at once
208206

0 commit comments

Comments
 (0)