summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7d1ed51c91..d31346979d 100644
--- a/Makefile
+++ b/Makefile
@@ -313,10 +313,9 @@ lint: lint-frontend lint-backend
lint-frontend: node_modules
npx eslint --color --max-warnings=0 web_src/js build templates *.config.js docs/assets/js
npx stylelint --color --max-warnings=0 web_src/less
- npx editorconfig-checker templates
.PHONY: lint-backend
-lint-backend: golangci-lint vet
+lint-backend: golangci-lint vet editorconfig-checker
.PHONY: watch
watch:
@@ -789,6 +788,13 @@ golangci-lint-check:
curl -sfL "https://raw.githubusercontent.com/golangci/golangci-lint/v${MIN_GOLANGCI_LINT_VER_FMT}/install.sh" | sh -s -- -b $(GOPATH)/bin v$(MIN_GOLANGCI_LINT_VER_FMT); \
fi
+.PHONY: editorconfig-checker
+editorconfig-checker:
+ @hash editorconfig-checker > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
+ $(GO) install github.com/editorconfig-checker/editorconfig-checker/cmd/editorconfig-checker@50adf46752da119dfef66e57be3ce2693ea4aa9c; \
+ fi
+ editorconfig-checker templates
+
.PHONY: docker
docker:
docker build --disable-content-trust=false -t $(DOCKER_REF) .