We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 108dc27 commit 8ca212cCopy full SHA for 8ca212c
Makefile
@@ -11,12 +11,14 @@ goimports:
11
@goimports -w .
12
13
lint:
14
- @echo "🚀 Running lint..."
15
- @command -v golangci-lint > /dev/null || (echo "🚀 Installing golangci-lint..."; curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "${GOPATH}/bin")
+ @echo "🚀 Installing/updating golangci-lint…"
+ GO111MODULE=on go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
16
+
17
+ @echo "🚀 Running lint…"
18
@make addheaders
19
@make goimports
20
@make fmt
- @./hack/go-lint.sh ${params}
21
+ @$(GOPATH)/bin/golangci-lint run ./... ${params}
22
@echo "✅ Linting completed!"
23
24
.PHONY: test
0 commit comments