5 changed files with 28 additions and 0 deletions
@ -0,0 +1,11 @@ |
|||||||
|
run: |
||||||
|
timeout: 5m |
||||||
|
|
||||||
|
linters: |
||||||
|
disable-all: true |
||||||
|
enable: |
||||||
|
- bodyclose |
||||||
|
- deadcode |
||||||
|
- ineffassign |
||||||
|
- staticcheck |
||||||
|
- unused |
||||||
@ -0,0 +1,13 @@ |
|||||||
|
GOBIN=$(shell pwd)/bin
|
||||||
|
|
||||||
|
install-lint: |
||||||
|
@if [ ! -f "$(GOBIN)/golangci-lint" ]; then \
|
||||||
|
curl -sSfL -q https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOBIN) v1.42.0; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
lint: install-lint |
||||||
|
@echo "golangci-lint run ./..."
|
||||||
|
@$(GOBIN)/golangci-lint run ./...
|
||||||
|
|
||||||
|
test: |
||||||
|
go test -race -failfast ./...
|
||||||
Loading…
Reference in new issue