Skip to content

Commit 2b521e2

Browse files
committed
Switch to golangci-lint
Signed-off-by: Maksym Pavlenko <[email protected]>
1 parent f2b6c31 commit 2b521e2

4 files changed

Lines changed: 23 additions & 26 deletions

File tree

.golangci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
linters:
2+
enable:
3+
- structcheck
4+
- varcheck
5+
- staticcheck
6+
- unconvert
7+
- gofmt
8+
- goimports
9+
- golint
10+
- ineffassign
11+
- vet
12+
- unused
13+
- misspell
14+
disable:
15+
- errcheck
16+
17+
run:
18+
skip-dirs:
19+
- api
20+
- design
21+
- docs

.gometalinter.json

Lines changed: 0 additions & 23 deletions
This file was deleted.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ all: binaries
121121

122122
check: proto-fmt ## run all linters
123123
@echo "$(WHALE) $@"
124-
gometalinter --config .gometalinter.json ./...
124+
golangci-lint run
125125

126126
ci: check binaries checkprotos coverage coverage-integration ## to be used by the CI
127127

script/setup/install-dev-tools

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,5 @@
2121
set -eu -o pipefail
2222

2323
go get -u github.com/stevvooe/protobuild
24-
go get -u github.com/alecthomas/gometalinter
25-
gometalinter --install >/dev/null
24+
go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
2625
go get -u github.com/cpuguy83/go-md2man

0 commit comments

Comments
 (0)