simplify linter

This commit is contained in:
Motiejus Jakštys 2021-08-24 17:23:31 +03:00
parent 63d171007e
commit 6f40bc91be
2 changed files with 3 additions and 8 deletions

View File

@ -13,7 +13,6 @@ tasks:
make -C undocker coverage.html
- lint: |
make -C undocker -O -j$(nproc) lint
shellcheck undocker/release
- binaries: |
make -C undocker -O -j$(nproc) sha256sum.txt
cat undocker/sha256sum.txt

View File

@ -1,3 +1,4 @@
SCRIPTS = $(shell awk '/#!\/bin\/(ba)?sh/&&FNR==1{print FILENAME}' $(shell git ls-files))
GODEPS = $(shell git ls-files '*.go' go.mod go.sum)
GOBIN = $(shell go env GOPATH)/bin/
@ -29,15 +30,10 @@ $(foreach goosarch,$(GOOSARCHS),\
all: $(UNDOCKERS)
.PHONY: lint
lint: vet staticcheck
.PHONY: vet
vet:
lint:
go vet ./...
.PHONY: staticcheck
staticcheck:
$(GOBIN)staticcheck -f stylish ./...
shellcheck $(SCRIPTS)
.INTERMEDIATE: coverage.out
coverage.out: $(GODEPS)