Skip to content

Commit bf5b7ce

Browse files
committed
Removing my local grep choice
1 parent 21a4f2a commit bf5b7ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/lint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ OUT=$(errcheck $PKG/...)
1212
if [ $(echo "$OUT\c" | wc -l) -ne 0 ]; then echo "$OUT"; PROBLEM=1; fi
1313

1414
echo "go vet:"
15-
OUT=$(go tool vet -all=true -v=true $ROOT_DIR 2>&1 | /usr/bin/grep --invert-match -E "(Checking file|\%p of wrong type|can't check non-constant format)")
15+
OUT=$(go tool vet -all=true -v=true $ROOT_DIR 2>&1 | grep --invert-match -E "(Checking file|\%p of wrong type|can't check non-constant format)")
1616
if [ $(echo "$OUT\c" | wc -l) -ne 0 ]; then echo "$OUT"; PROBLEM=1; fi
1717

1818
echo "golint:"
19-
OUT=$(golint $PKG/... | /usr/bin/grep --invert-match -E "(method DiffPrettyHtml should be DiffPrettyHTML)")
19+
OUT=$(golint $PKG/... | grep --invert-match -E "(method DiffPrettyHtml should be DiffPrettyHTML)")
2020
if [ $(echo "$OUT\c" | wc -l) -ne 0 ]; then echo "$OUT"; PROBLEM=1; fi
2121

2222
if [ -n "$PROBLEM" ]; then exit 1; fi

0 commit comments

Comments
 (0)