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 authored and gligneul committed Jan 23, 2024
1 parent c9c80ca commit 5ae0b87
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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."; \
Expand Down

0 comments on commit 5ae0b87

Please sign in to comment.