From eddfd64a2587cbafb8c7bed9f89d8e4504dc31f5 Mon Sep 17 00:00:00 2001 From: Rootul Patel Date: Fri, 15 Nov 2024 10:48:03 -0500 Subject: [PATCH] feat: add make commands for lint and markdown links --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..ffaa58a9 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +## lint: Run all linters; golangci-lint, markdownlint. +lint: + @echo "--> Running golangci-lint" + @golangci-lint run + @echo "--> Running markdownlint" + @markdownlint --config .markdownlint.yaml '**/*.md' +.PHONY: lint + +## markdown-link-check: Check all markdown links. +markdown-link-check: + @echo "--> Running markdown-link-check" + @find . -name \*.md -print0 | xargs -0 -n1 markdown-link-check +.PHONY: markdown-link-check