Skip to content

Commit

Permalink
chore: Fix yaml formatter so that it ignores the github and examples …
Browse files Browse the repository at this point in the history
…directory.
  • Loading branch information
hessjcg committed Sep 20, 2023
1 parent 43e29d7 commit cbacec4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,9 @@ go_fmt: # Automatically formats go files
go mod tidy
go run golang.org/x/tools/cmd/goimports@latest -w .

yaml_fmt: # Automatically formats all yaml files
go run github.com/UltiRequiem/yamlfmt@latest -w $(shell find . -iname '*.yaml' -or -iname '*.yml' | grep -v -e '^./bin/' | grep -v -e '^./.github/workflows/')
yaml_fmt: # Automatically format config/ to make generated and handwritten k8s yaml files consistent
go run github.com/UltiRequiem/yamlfmt@latest -w \
$(shell find ./config -iname '*.yaml' -or -iname '*.yml')

.PHONY: add_copyright_header
add_copyright_header: # Add the copyright header
Expand Down

0 comments on commit cbacec4

Please sign in to comment.