mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 16:33:21 +01:00
rollup static analysis to make target
This commit is contained in:
parent
991bf203da
commit
2502814143
@ -32,7 +32,7 @@ jobs:
|
|||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: run static analysis
|
name: run static analysis
|
||||||
command: make lint
|
command: make static-analysis
|
||||||
|
|
||||||
run-tests:
|
run-tests:
|
||||||
parameters:
|
parameters:
|
||||||
|
|||||||
5
Makefile
5
Makefile
@ -55,7 +55,7 @@ endef
|
|||||||
## Tasks
|
## Tasks
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: clean lint check-licenses test ## Run all linux-based checks (linting, license check, unit, integration, and linux acceptance tests)
|
all: clean static-analysis test ## Run all linux-based checks (linting, license check, unit, integration, and linux acceptance tests)
|
||||||
@printf '$(SUCCESS)All checks pass!$(RESET)\n'
|
@printf '$(SUCCESS)All checks pass!$(RESET)\n'
|
||||||
|
|
||||||
.PHONY: compare
|
.PHONY: compare
|
||||||
@ -87,6 +87,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)/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
|
[ -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
|
.PHONY: lint
|
||||||
lint: ## Run gofmt + golangci lint checks
|
lint: ## Run gofmt + golangci lint checks
|
||||||
$(call title,Running linters)
|
$(call title,Running linters)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user