Skip to content

Commit

Permalink
chore: add support to linting MD files
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelstanley committed Jan 23, 2024
1 parent d8cdd0d commit bf48c73
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ lint: ## Run the linter
@echo "Running the linter"
@golangci-lint run

.PHONY: md-lint
md-lint: ## Lint Markdown docs
@echo "Running markdownlint-cli"
@# Each directory has its own .markdownlint.yaml configuration
@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"
Expand All @@ -27,7 +34,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."; \
Expand Down

0 comments on commit bf48c73

Please sign in to comment.