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