Skip to content

Commit

Permalink
Merge pull request #4512 from sarthaksarthak9/lint
Browse files Browse the repository at this point in the history
🌱 : Add YAML Linting to CI Workflow for Scaffolded Charts
  • Loading branch information
k8s-ci-robot authored Feb 1, 2025
2 parents 543b4a1 + 8253931 commit ded393e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ lint-config: golangci-lint ## Verify golangci-lint linter configuration

.PHONY: yamllint
yamllint:
@files=$$(find testdata -name '*.yaml' ! -path 'testdata/*/dist/*'); \
docker run --rm $$(tty -s && echo "-it" || echo) -v $(PWD):/data cytopia/yamllint:latest $$files -d "{extends: relaxed, rules: {line-length: {max: 120}}}" --no-warnings

@files=$$(find testdata -name '*.yaml' ! -path 'testdata/*/dist/chart/install.yaml'); \
docker run --rm $$(tty -s && echo "-it" || echo) -v $(PWD):/data cytopia/yamllint:latest $$files -d "{extends: relaxed, rules: {line-length: {max: 120}}}" --no-warnings
GOLANGCI_LINT = $(shell pwd)/bin/golangci-lint
golangci-lint:
@[ -f $(GOLANGCI_LINT) ] || { \
Expand Down

0 comments on commit ded393e

Please sign in to comment.