File tree Expand file tree Collapse file tree
Documentation/Contributing Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -255,7 +255,6 @@ Run `make lint` to run all linters. This will require the following CLI tools to
255255* [ yamllint] ( https://www.yamllint.com/ )
256256* [ shellcheck] ( https://www.shellcheck.net/ )
257257* [ pylint] ( https://www.pylint.org/ )
258- * [ markdownlint-cli2] ( https://github.com/DavidAnson/markdownlint-cli2 )
259258
260259Many of those tools are available via ` brew ` for MacOS or as Linux distribution packages.
261260Otherwise refer to the respective project websites for installation instructions.
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ all: build
3232CONTROLLER_GEN_VERSION =v0.19.0
3333CT_VERSION := v3.13.0
3434KUSTOMIZE_VERSION := v5.3.0
35+ MARKDOWNLINT_IMAGE_VERSION := v0.22.0
3536
3637# include here and not earlier so that the version numbers are available
3738# where needed
@@ -188,11 +189,11 @@ golangci-lint: $(YQ)
188189
189190.PHONY : markdownlint
190191markdownlint : # # Check formatting of documentation sources
191- markdownlint-cli2 " Documentation/**/**.md" " #Documentation/Helm-Charts/**" --config .markdownlint-cli2.cjs
192+ @ $( MARKDOWNLINT ) " Documentation/**/**.md" " #Documentation/Helm-Charts/**" --config .markdownlint-cli2.cjs
192193
193194.PHONY : markdownlint.fix
194195markdownlint.fix : # # Check and fix formatting of documentation sources
195- markdownlint-cli2 " Documentation/**/**.md" " #Documentation/Helm-Charts/**" --fix --config .markdownlint-cli2.cjs
196+ @ $( MARKDOWNLINT ) " Documentation/**/**.md" " #Documentation/Helm-Charts/**" --fix --config .markdownlint-cli2.cjs
196197
197198.PHONY : yamllint
198199yamllint :
Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ DOCKERCMD=$(shell podman version >/dev/null 2>&1 && echo podman)
3535endif
3636endif
3737
38+ MARKDOWNLINT := $(DOCKERCMD ) run --rm -v $$PWD:/workdir davidanson/markdownlint-cli2:$(MARKDOWNLINT_IMAGE_VERSION )
39+
3840ifeq ($(origin PLATFORM ) , undefined)
3941ifeq ($(origin GOOS ) , undefined)
4042GOOS := $(shell go env GOOS)
You can’t perform that action at this time.
0 commit comments