makefile: fix indenting, use corret markdownlint binary (#10143)

This commit is contained in:
Joshua Powers 2021-11-24 08:42:47 -07:00 committed by GitHub
parent 6518745153
commit 6ce4729813
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 13 deletions

View File

@ -148,26 +148,26 @@ lint-install:
.PHONY: lint .PHONY: lint
lint: lint:
ifeq (, $(shell which golangci-lint)) @which golangci-lint >/dev/null 2>&1 || { \
$(info golangci-lint can't be found, please run: make lint-install) echo "golangci-lint not found, please run: make lint-install"; \
exit 1 exit 1; \
endif }
golangci-lint run golangci-lint run
ifeq (, $(shell which markdownlint)) @which markdownlint >/dev/null 2>&1 || { \
$(info markdownlint can't be found, please run: make lint-install) echo "markdownlint not found, please run: make lint-install"; \
exit 1 exit 1; \
endif }
markdownlint-cli markdownlint .
.PHONY: lint-branch .PHONY: lint-branch
lint-branch: lint-branch:
ifeq (, $(shell which golangci-lint)) @which golangci-lint >/dev/null 2>&1 || { \
$(info golangci-lint can't be found, please run: make lint-install) echo "golangci-lint not found, please run: make lint-install"; \
exit 1 exit 1; \
endif }
golangci-lint run --new-from-rev master golangci-lint run --new-from-rev master