File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 8
8
function filterExcludedFiles {
9
9
CHECK=` echo " $CHECK " | grep -v .png$ | grep -v .rst$ | grep -v ^.git/ \
10
10
| grep -v .pem$ | grep -v .block$ | grep -v .tx$ | grep -v ^LICENSE$ | grep -v _sk$ \
11
- | grep -v .key$ | grep -v \\ .gen.go$ | grep -v ^Gopkg.lock$ \
11
+ | grep -v .key$ | grep -v \\ .gen.go$ | grep -v ^Gopkg.lock$ | grep -v ' testdata/ ' \
12
12
| grep -v .md$ | grep -v ^vendor/ | grep -v ^build/ | grep -v .pb.go$ | sort -u`
13
13
}
14
14
Original file line number Diff line number Diff line change 27
27
echo " >>>Checking code under $i /"
28
28
29
29
echo " Checking with gofmt"
30
- OUTPUT=" $( gofmt -l -s ./$i ) "
30
+ OUTPUT=" $( gofmt -l -s ./$i | grep -v testdata/ || true ) "
31
31
if [[ $OUTPUT ]]; then
32
32
echo " The following files contain gofmt errors"
33
33
echo " $OUTPUT "
36
36
fi
37
37
38
38
echo " Checking with goimports"
39
- OUTPUT=" $( goimports -srcdir $GOPATH /src/github.com/hyperledger/fabric -l $i ) "
39
+ OUTPUT=" $( goimports -srcdir $GOPATH /src/github.com/hyperledger/fabric -l $i | grep -v testdata/ || true ) "
40
40
if [[ $OUTPUT ]]; then
41
41
echo " The following files contain goimports errors"
42
42
echo $OUTPUT
You can’t perform that action at this time.
0 commit comments