add docsorder linter (#5637)

This commit is contained in:
Alessandro Ros
2026-04-04 17:01:15 +02:00
committed by GitHub
parent d4c6f95291
commit 6a2bccd25b
42 changed files with 140 additions and 34 deletions
+4 -1
View File
@@ -27,6 +27,9 @@ lint-go2api:
lint-docslinks:
go test -v -tags enable_linters ./internal/linters/docslinks
lint-docsorder:
go test -v -tags enable_linters ./internal/linters/docsorder
lint-docs:
echo "$$DOCKERFILE_DOCS_LINT" | docker build . -f - -t temp
docker run --rm -v "$(shell pwd)/docs:/s" -w /s temp \
@@ -37,4 +40,4 @@ lint-api-docs:
docker run --rm -v "$(shell pwd)/api:/s" -w /s temp \
sh -c "openapi lint openapi.yaml"
lint: lint-go lint-go-mod lint-conf lint-go2api lint-docslinks lint-docs lint-api-docs
lint: lint-go lint-go-mod lint-conf lint-go2api lint-docslinks lint-docsorder lint-docs lint-api-docs