Skip to content

Commit 39846dc

Browse files
author
ca.mathieu
committed
gofmt only source roots
1 parent a25b4f5 commit 39846dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ version:
6262
# Run linters
6363
###
6464
lint:
65-
@FAIL=0 ;echo -n " - go fmt :" ; OUT=`gofmt -l . 2>&1 | grep -v ^vendor` ; \
65+
@FAIL=0 ;echo -n " - go fmt :" ; OUT=`gofmt -l client server plik` ; \
6666
if [[ -z "$$OUT" ]]; then echo " OK" ; else echo " FAIL"; echo "$$OUT"; FAIL=1 ; fi ;\
6767
echo -n " - go vet :" ; OUT=`go vet ./... 2>&1` ; \
6868
if [[ -z "$$OUT" ]]; then echo " OK" ; else echo " FAIL"; echo "$$OUT"; FAIL=1 ; fi ;\
@@ -72,7 +72,7 @@ lint:
7272
# Run fmt
7373
###
7474
fmt:
75-
@gofmt -w -s $(shell find . -type f -name '*.go' -not -path "./vendor/*" )
75+
@gofmt -w -s client server plik
7676

7777
###
7878
# Run tests
@@ -143,4 +143,4 @@ clean-all: clean clean-frontend
143143
# by make, we must declare these targets as phony to avoid :
144144
# "make: `client' is up to date" cases at compile time
145145
###
146-
.PHONY: client clients server release
146+
.PHONY: client clients server release

0 commit comments

Comments
 (0)