Skip to content

Commit 2b9f686

Browse files
authored
Merge pull request #2699 from norio-nomura/exclude-.git-in-make-lint
Makefile: exclude `.git` in `make lint`
2 parents 0ac8438 + cb4edaa commit 2b9f686

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)