Skip to content

Commit

Permalink
Quote lint-md wildcard expression
Browse files Browse the repository at this point in the history
This avoids a potential foot gun, where a future md file in a
sub directory would match the wildcard in the shell, and not pass
the expression to the linter.

Signed-off-by: Brandon Mitchell <[email protected]>
  • Loading branch information
sudo-bmitch committed Aug 4, 2023
1 parent 82d42b1 commit 9ac8f92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ lint-go: .install.lint ## lint check of Go files using golangci-lint
.PHONY: lint-md
lint-md: ## Run linting for markdown
docker run --rm -v "$(PWD):/workdir:ro" docker.io/davidanson/markdownlint-cli2:$(MARKDOWN_LINT_VER) \
**/*.md "#vendor"
"**/*.md" "#vendor"

.PHONY: test
test: ## run the unit tests
Expand Down

0 comments on commit 9ac8f92

Please sign in to comment.