Skip to content

Commit 9adef84

Browse files
authored
Merge pull request #89 from RobotSail/add-auto-lint-fix
add target to automatically fix markdown lint errors
2 parents a04745f + f8d8807 commit 9adef84

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,8 @@ endif
2828
md-lint: ## Lint markdown files
2929
$(ECHO_PREFIX) printf " %-12s ./...\n" "[MD LINT]"
3030
$(CMD_PREFIX) podman run --rm -v $(CURDIR):/workdir --security-opt label=disable docker.io/davidanson/markdownlint-cli2:latest > /dev/null
31+
32+
.PHONY: md-lint-fix
33+
md-lint-fix: ## Fixes all fixable linting errors
34+
$(ECHO_PREFIX) printf " %-12s ./...\n" "[MD LINT]"
35+
$(CMD_PREFIX) podman run --rm -v $(CURDIR):/workdir --security-opt label=disable docker.io/davidanson/markdownlint-cli2:latest --fix > /dev/null

0 commit comments

Comments
 (0)