diff options
author | silverwind <me@silverwind.io> | 2022-02-18 05:33:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-18 12:33:58 +0800 |
commit | 6767798eefc3be5d2ebbec3571eec6e392b237f2 (patch) | |
tree | 3fb4be2f4070d527aff9a53c7cadac3e83683ed8 /Makefile | |
parent | 833f291c40364ae0a2650d3df8bf9231a4464adf (diff) | |
download | gitea-6767798eefc3be5d2ebbec3571eec6e392b237f2.tar.gz gitea-6767798eefc3be5d2ebbec3571eec6e392b237f2.zip |
Move editorconfig-checker to lint-backend and remove JS wrapper (#18793)
* Move editorconfig-checker to lint-backend
It makes more sense there as templates are considered backend code.
* User golang version of the tool
* remove dependency
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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) . |