diff options
author | silverwind <me@silverwind.io> | 2023-04-09 20:05:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-09 20:05:12 +0200 |
commit | 96fb7506db633135f1470dc0ed34b4b1e36e8ea0 (patch) | |
tree | 962e799a5af9d25ae922ce7f885e237af9b1f4b0 /Makefile | |
parent | 53439e5c7944b3dc2aa5974b7ea1659b0d6e61f1 (diff) | |
download | gitea-96fb7506db633135f1470dc0ed34b4b1e36e8ea0.tar.gz gitea-96fb7506db633135f1470dc0ed34b4b1e36e8ea0.zip |
Introduce lint-md and compliance-docs pipeline (#24021)
- Add new Make target `lint-md`
- Add new Drone pipeline `compliance-docs`
- Add `*.md` to docs exclusion/inclusion
- Consistently quote `path.include` and `path.exclude` statements in
YAML
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -196,6 +196,7 @@ help: @echo " - lint lint everything" @echo " - lint-frontend lint frontend files" @echo " - lint-backend lint backend files" + @echo " - lint-md lint markdown files" @echo " - checks run various consistency checks" @echo " - checks-frontend check frontend files" @echo " - checks-backend check backend files" @@ -341,10 +342,13 @@ checks-backend: tidy-check swagger-check fmt-check misspell-check swagger-valida lint: lint-frontend lint-backend .PHONY: lint-frontend -lint-frontend: node_modules +lint-frontend: node_modules lint-md npx eslint --color --max-warnings=0 --ext js,vue web_src/js build *.config.js docs/assets/js tests/e2e npx stylelint --color --max-warnings=0 web_src/css npx spectral lint -q -F hint $(SWAGGER_SPEC) + +.PHONY: lint-md +lint-md: node_modules npx markdownlint docs *.md .PHONY: lint-backend |