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