chore: add support for linting
This commit is contained in:
parent
0290ef59b6
commit
7f0dd549fd
6 changed files with 1176 additions and 31 deletions
6
Makefile
6
Makefile
|
@ -52,9 +52,13 @@ $(BINDIR)/$(GOOS)-$(GOARCH)/$(BINNAME): $(SRC)
|
|||
@CGO_ENABLED=0 go build -ldflags "$(LDFLAGS)" -o $(BINDIR)/$(GOOS)-$(GOARCH)/$(BINNAME) .
|
||||
|
||||
.PHONY: test
|
||||
test: build
|
||||
test:
|
||||
@go test -v ./...
|
||||
|
||||
.PHONY: lint
|
||||
lint:
|
||||
@go run -modfile=tools/go.mod github.com/golangci/golangci-lint/cmd/golangci-lint run
|
||||
|
||||
# ----------------
|
||||
# Cross compiling
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue