Skip to content

Commit

Permalink
feat: add make commands for lint and markdown links
Browse files Browse the repository at this point in the history
  • Loading branch information
rootulp committed Nov 15, 2024
1 parent adafd7d commit eddfd64
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit eddfd64

Please sign in to comment.