From 5ae0b871a525bd8d957a731d2d7024885a085473 Mon Sep 17 00:00:00 2001 From: Marcel Moura Date: Tue, 23 Jan 2024 12:55:45 -0300 Subject: [PATCH] chore: add support to linting MD files --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index dce9b7c7d..49642f4ff 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,12 @@ lint: ## Run the linter @echo "Running the linter" @golangci-lint run +.PHONY: md-lint +md-lint: ## Lint Markdown docs. Each dir has its own .markdownlint.yaml. + @echo "Running markdownlint-cli" + @docker run -v $$PWD:/workdir ghcr.io/igorshubovych/markdownlint-cli:latest "*.md" + @docker run -v $$PWD/docs:/workdir ghcr.io/igorshubovych/markdownlint-cli:latest "*.md" + .PHONY: generate generate: ## Generate the file that are commited to the repo @echo "Generating Go files" @@ -27,7 +33,7 @@ graphql-schema: ## Generate the graphql schema file @mv offchain/schema.graphql api/graphql/reader.graphql .PHONY: check-generate -check-generate: generate graphql-schema ## Check whether the generated files are in sync +check-generate: generate graphql-schema ## Check whether the generated files are in sync @echo "Checking differences on the repository..." @if git diff --exit-code; then \ echo "No differences found."; \