lint is a composite target

This commit is contained in:
Motiejus Jakštys 2021-06-01 19:47:45 +03:00
parent b138e2b1f8
commit 1d58548136
2 changed files with 8 additions and 2 deletions

View File

@ -11,6 +11,6 @@ tasks:
- test: |
make -C undocker coverage.html
- lint: |
make -C undocker lint
make -C undocker -j$(nproc) -O lint
artifacts:
- undocker/coverage.html

View File

@ -9,8 +9,14 @@ test:
go test -race -cover ./...
.PHONY: lint
lint:
lint: vet staticcheck
.PHONY: vet
vet:
go vet ./...
.PHONY: staticcheck
staticcheck:
$(GOBIN)staticcheck -f stylish ./...
.INTERMEDIATE: coverage.out