Skip to content

Commit

Permalink
chore: lint README.md
Browse files Browse the repository at this point in the history
To primarily avoid conflicts and allow for automations.

Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
  • Loading branch information
rexagod committed Feb 19, 2024
1 parent 122e5e8 commit 9b0ac68
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 104 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ licensecheck:
exit 1; \
fi

lint: shellcheck licensecheck lint-markdown-format
lint: shellcheck licensecheck lint-markdownfmt lint-markdown-format
golangci-lint run

lint-fix: fix-markdown-format
lint-fix: lint-markdownfmt-fix fix-markdown-format
golangci-lint run --fix -v


Expand Down Expand Up @@ -84,6 +84,12 @@ shellcheck:
lint-markdown-format:
${DOCKER_CLI} run -v "${PWD}:/workdir" davidanson/markdownlint-cli2:v${MARKDOWNLINT_CLI2_VERSION} --config .markdownlint-cli2.jsonc

lint-markdownfmt:
markdownfmt -d -gofmt README.md

lint-markdownfmt-fix:
markdownfmt -gofmt -w README.md

fix-markdown-format:
${DOCKER_CLI} run -v "${PWD}:/workdir" davidanson/markdownlint-cli2:v${MARKDOWNLINT_CLI2_VERSION} --fix --config .markdownlint-cli2.jsonc

Expand Down
Loading

0 comments on commit 9b0ac68

Please sign in to comment.