Skip to content

Commit 06f9224

Browse files
author
Dean Karn
committed
linting cleanup
1 parent 6484d9f commit 06f9224

File tree

9 files changed

+157
-284
lines changed

9 files changed

+157
-284
lines changed

Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
GOCMD=go
22

33
linters-install:
4-
$(GOCMD) get -u github.com/alecthomas/gometalinter
5-
gometalinter --install
4+
@golangci-lint --version >/dev/null 2>&1 || { \
5+
echo "installing linting tools..."; \
6+
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.19.1; \
7+
}
68

79
lint: linters-install
8-
gometalinter --vendor --disable-all --enable=vet --enable=vetshadow --enable=golint --enable=maligned --enable=megacheck --enable=ineffassign --enable=misspell --enable=errcheck --enable=goconst ./...
10+
golangci-lint run
911

1012
test:
1113
$(GOCMD) test -cover -race ./...

0 commit comments

Comments
 (0)