simplify linter
This commit is contained in:
parent
63d171007e
commit
6f40bc91be
@ -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
|
||||
|
10
Makefile
10
Makefile
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user