From 1d5854813646e39be18e1c28221331b54857ba53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 1 Jun 2021 19:47:45 +0300 Subject: [PATCH] lint is a composite target --- .build.yml | 2 +- Makefile | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.build.yml b/.build.yml index f0df088..e0771c0 100644 --- a/.build.yml +++ b/.build.yml @@ -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 diff --git a/Makefile b/Makefile index abffe4d..ad9f099 100644 --- a/Makefile +++ b/Makefile @@ -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