File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,23 +4,23 @@ if [ -z ${PKG+x} ]; then echo "PKG is not set"; exit 1; fi
44if [ -z ${ROOT_DIR+x} ]; then echo " ROOT_DIR is not set" ; exit 1; fi
55
66echo " gofmt:"
7- OUT=$( gofmt -l -s $ROOT_DIR 2>&1 | grep --invert-match -E " (/(example|vendor))" )
7+ OUT=$( gofmt -l -s " $ROOT_DIR " 2>&1 | grep --invert-match -E " (/(example|vendor))" )
88if [ -n " $OUT " ]; then echo " $OUT " ; PROBLEM=1; fi
99
1010echo " errcheck:"
11- OUT=$( errcheck $PKG /... 2>&1 | grep --invert-match -E " (/(example|vendor))" )
11+ OUT=$( errcheck " $PKG /..." 2>&1 | grep --invert-match -E " (/(example|vendor))" )
1212if [ -n " $OUT " ]; then echo " $OUT " ; PROBLEM=1; fi
1313
1414echo " go vet:"
15- OUT=$( go vet -all=true $ROOT_DIR 2>&1 | grep --invert-match -E " (Checking file|\%p of wrong type|can't check non-constant format|/example|/vendor)" )
15+ OUT=$( go vet -all=true " $ROOT_DIR " 2>&1 | grep --invert-match -E " (Checking file|\%p of wrong type|can't check non-constant format|/example|/vendor)" )
1616if [ -n " $OUT " ]; then echo " $OUT " ; PROBLEM=1; fi
1717
1818echo " golint:"
1919OUT=$( golint ./... 2>&1 | grep --invert-match -E " (^(example|vendor))" )
2020if [ -n " $OUT " ]; then echo " $OUT " ; PROBLEM=1; fi
2121
2222echo " staticcheck:"
23- OUT=$( staticcheck $PKG /... 2>&1 | grep --invert-match -E " ((example|vendor)/)" )
23+ OUT=$( staticcheck " $PKG /..." 2>&1 | grep --invert-match -E " ((example|vendor)/)" )
2424if [ -n " $OUT " ]; then echo " $OUT " ; PROBLEM=1; fi
2525
2626if [ -n " $PROBLEM " ]; then exit 1; fi
You can’t perform that action at this time.
0 commit comments