Makefile: fix lint rules

This commit is contained in:
Motiejus Jakštys 2024-05-10 14:57:10 +03:00
parent 8a2713bd3b
commit da1fb2ae17

View File

@ -1,4 +1,4 @@
SCRIPTS = $(shell awk '/#!\/bin\/(ba)?sh/&&FNR==1{print FILENAME}' $(shell git ls-files))
SCRIPTS = $(shell awk '/#!\/usr\/bin\/env (ba)?sh/&&FNR==1{print FILENAME}' $(shell git ls-files))
GODEPS = $(shell git ls-files '*.go' go.mod go.sum)
VSN ?= $(shell git describe --dirty)
@ -14,7 +14,7 @@ test: coverage.out
.PHONY: lint
lint:
go vet ./...
$(shell go env GOPATH)/bin/staticcheck -f stylish ./...
staticcheck -f stylish ./...
shellcheck $(SCRIPTS)
.INTERMEDIATE: coverage.out