Skip to content

Commit cb4edaa

Browse files
committed
Makefile: exclude .git in make lint
Branch names ending with `.sh` may cause false positives. Signed-off-by: Norio Nomura <[email protected]>
1 parent 0ac8438 commit cb4edaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,8 @@ lint: check-generated
444444
golangci-lint run ./...
445445
yamllint .
446446
ls-lint
447-
find . -name '*.sh' | xargs shellcheck
448-
find . -name '*.sh' | xargs shfmt -s -d
447+
find . -name '*.sh' ! -path "./.git/*" | xargs shellcheck
448+
find . -name '*.sh' ! -path "./.git/*" | xargs shfmt -s -d
449449

450450
.PHONY: clean
451451
clean:

0 commit comments

Comments
 (0)