mirror of
https://github.com/anchore/grype
synced 2024-11-10 14:44:12 +00:00
chore: exclude yardstick store from filename rules (#1440)
Enables "make lint" to be run after "make quality". Previously, the linter rules that prohibit ":" in any filename would fail if the yardstick or vulnerability-match-labels directories had been initialized (e.g. if "make quality" had been run), since they have filenames like "sha256:abcd" in them. Exclude them from this lint, since they are not go files. Signed-off-by: Will Murphy <will.murphy@anchore.com>
This commit is contained in:
parent
1c084c44b0
commit
ef2a5e9c00
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -142,7 +142,7 @@ lint: ## Run gofmt + golangci lint checks
|
|||
@[ -z "$(shell $(GOIMPORTS_CMD) -d .)" ] || (echo "goimports needs to be fixed" && false)
|
||||
|
||||
# go tooling does not play well with certain filename characters, ensure the common cases don't result in future "go get" failures
|
||||
$(eval MALFORMED_FILENAMES := $(shell find . | grep -e ':'))
|
||||
$(eval MALFORMED_FILENAMES := $(shell find . | grep -e ':' | grep -v -e "test/quality/.yardstick" -e "test/quality/vulnerability-match-labels"))
|
||||
@bash -c "[[ '$(MALFORMED_FILENAMES)' == '' ]] || (printf '\nfound unsupported filename characters:\n$(MALFORMED_FILENAMES)\n\n' && false)"
|
||||
|
||||
.PHONY: format
|
||||
|
|
Loading…
Reference in a new issue