Skip to content

Commit df15cb2

Browse files
committed
Ignore formatting for vendor
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 9272e87 commit df15cb2

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
@@ -32,7 +32,7 @@ build:
3232

3333
.PHONY: gofmt
3434
gofmt:
35-
@test -z $(shell gofmt -l -s $(SOURCE_DIRS) ./ | tee /dev/stderr) || (echo "[WARN] Fix formatting issues with 'make gofmt'" && exit 1)
35+
@test -z $(shell gofmt -l -s $(SOURCE_DIRS) ./ | grep -v vendor | tee /dev/stderr) || (echo "[WARN] Fix formatting issues with 'make gofmt'" && exit 1)
3636

3737
.PHONY: test
3838
test:

0 commit comments

Comments
 (0)