3 changed files with 20 additions and 0 deletions
@ -0,0 +1,11 @@
@@ -0,0 +1,11 @@
|
||||
run: |
||||
timeout: 5m |
||||
|
||||
linters: |
||||
disable-all: true |
||||
enable: |
||||
- bodyclose |
||||
- deadcode |
||||
- ineffassign |
||||
- staticcheck |
||||
- unused |
||||
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
GOBIN=$(shell pwd)/bin
|
||||
|
||||
install-lint: |
||||
@curl -sSfL -q https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOBIN) v1.42.0
|
||||
|
||||
lint: install-lint |
||||
@echo "golangci-lint run ../..."
|
||||
@$(GOBIN)/golangci-lint run ./...
|
||||
Loading…
Reference in new issue