feat(examples): add linting to all examples (#12595)

Fixes #12588
This commit is contained in:
Mathias Fredriksson
2024-03-14 16:49:44 +02:00
committed by GitHub
parent 410a7d54ee
commit 5dd436c19b
3 changed files with 169 additions and 88 deletions
+5 -1
View File
@@ -428,7 +428,7 @@ else
endif
.PHONY: fmt/shfmt
lint: lint/shellcheck lint/go lint/ts lint/helm lint/site-icons
lint: lint/shellcheck lint/go lint/ts lint/examples lint/helm lint/site-icons
.PHONY: lint
lint/site-icons:
@@ -447,6 +447,10 @@ lint/go:
golangci-lint run
.PHONY: lint/go
lint/examples:
go run ./scripts/examplegen/main.go -lint
.PHONY: lint/examples
# Use shfmt to determine the shell files, takes editorconfig into consideration.
lint/shellcheck: $(SHELL_SRC_FILES)
echo "--- shellcheck"