Skip to content

Commit 5e6db8e

Browse files
authored
Add option to yamlfmt to ignore vendor directories (#2286)
The `make fmt` target now includes YAML formatting. This is causing an issue downstream where vendored YAML files are being formatted. This fix excludes vendor directories (and other files) based on the project's .gitignore. Signed-off-by: Todd Short <[email protected]>
1 parent 25d3e43 commit 5e6db8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ fix-lint: $(GOLANGCI_LINT) #EXHELP Fix lint issues
188188
.PHONY: fmt
189189
fmt: $(YAMLFMT) #EXHELP Formats code
190190
go fmt ./...
191-
$(YAMLFMT) testdata
191+
$(YAMLFMT) -gitignore_excludes testdata
192192

193193
.PHONY: update-tls-profiles
194194
update-tls-profiles: $(GOJQ) #EXHELP Update TLS profiles from the Mozilla wiki

0 commit comments

Comments
 (0)