1
Fork 0

simplify linter

main
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 make -C undocker coverage.html
- lint: | - lint: |
make -C undocker -O -j$(nproc) lint make -C undocker -O -j$(nproc) lint
shellcheck undocker/release
- binaries: | - binaries: |
make -C undocker -O -j$(nproc) sha256sum.txt make -C undocker -O -j$(nproc) sha256sum.txt
cat undocker/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) GODEPS = $(shell git ls-files '*.go' go.mod go.sum)
GOBIN = $(shell go env GOPATH)/bin/ GOBIN = $(shell go env GOPATH)/bin/
@ -29,15 +30,10 @@ $(foreach goosarch,$(GOOSARCHS),\
all: $(UNDOCKERS) all: $(UNDOCKERS)
.PHONY: lint .PHONY: lint
lint: vet staticcheck lint:
.PHONY: vet
vet:
go vet ./... go vet ./...
.PHONY: staticcheck
staticcheck:
$(GOBIN)staticcheck -f stylish ./... $(GOBIN)staticcheck -f stylish ./...
shellcheck $(SCRIPTS)
.INTERMEDIATE: coverage.out .INTERMEDIATE: coverage.out
coverage.out: $(GODEPS) coverage.out: $(GODEPS)