aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorsilverwind2022-07-12 01:07:16 +0200
committerGitHub2022-07-11 18:07:16 -0500
commitc8e0fd0bccb37898c1eb111256397c9c2e039598 (patch)
tree5b3063138a4727931a556f06a3ec6ebed94f089f /Makefile
parent8a7d1a3516c4479dae6824d5b0b041ed7dd5eb41 (diff)
Add spectral linter for Swagger (#20321)
[spectral](https://github.com/stoplightio/spectral) lints openapi/swagger files for mistakes of which it has identified a few and which I've fixed. I had to put it into `lint-frontend` because it depends on node_modules so can not run on Drone during the backend target. I plan to refactor these targets later to `lint-js` and `lint-go` so that they are categorized based on the tool dependencies.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3e2f1524e..866b8c892 100644
--- a/Makefile
+++ b/Makefile
@@ -312,6 +312,7 @@ 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 spectral lint -q -F hint $(SWAGGER_SPEC)
.PHONY: lint-backend
lint-backend: golangci-lint vet editorconfig-checker