mirror of
https://github.com/anchore/grype
synced 2024-11-10 06:34:13 +00:00
rollup static analysis to make target
This commit is contained in:
parent
ff5e31f437
commit
0faf81320d
2 changed files with 6 additions and 4 deletions
|
@ -32,7 +32,7 @@ jobs:
|
|||
|
||||
- run:
|
||||
name: run static analysis
|
||||
command: make lint
|
||||
command: make static-analysis
|
||||
|
||||
run-tests:
|
||||
parameters:
|
||||
|
|
8
Makefile
8
Makefile
|
@ -46,9 +46,8 @@ define title
|
|||
@printf '$(TITLE)$(1)$(RESET)\n'
|
||||
endef
|
||||
|
||||
.PHONY: all bootstrap lint lint-fix unit coverage integration check-pipeline clear-cache help test
|
||||
|
||||
all: clean lint check-licenses test ## Run all checks (linting, license check, unit, integration, and linux acceptance tests tests)
|
||||
.PHONY: all
|
||||
all: clean static-analysis test ## Run all checks (linting, license check, unit, integration, and linux acceptance tests tests)
|
||||
@printf '$(SUCCESS)All checks pass!$(RESET)\n'
|
||||
|
||||
.PHONY: compare
|
||||
|
@ -78,6 +77,9 @@ bootstrap: ## Download and install all go dependencies (+ prep tooling in the ./
|
|||
[ -f "$(TEMPDIR)/bouncer" ] || curl -sSfL https://raw.githubusercontent.com/wagoodman/go-bouncer/master/bouncer.sh | sh -s -- -b $(TEMPDIR)/ v0.1.0
|
||||
[ -f "$(TEMPDIR)/goreleaser" ] || curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh -s -- -b $(TEMPDIR)/ v0.140.0
|
||||
|
||||
.PHONY: static-analysis
|
||||
static-analysis: lint check-licenses
|
||||
|
||||
.PHONY: lint
|
||||
lint: ## Run gofmt + golangci lint checks
|
||||
$(call title,Running linters)
|
||||
|
|
Loading…
Reference in a new issue