Skip to content

Commit 4e8fccb

Browse files
committed
fixed check_go_vet
1 parent 16f9437 commit 4e8fccb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎git-hooks/pre-commit‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ check_go_vet() {
3131
gofiles=$(git diff --cached --name-only --diff-filter=ACM | grep '.go$')
3232
[ -z "$gofiles" ] && return 0
3333

34-
warnings=$(go vet $gofiles 2>&1 | grep -v -e 'possible formatting directive' -e 'should have signature WriteTo' -e 'exit status 1')
34+
warnings=$(go vet ./... 2>&1 | grep -v -e 'possible formatting directive' -e 'should have signature WriteTo' -e 'exit status 1')
3535
[ -z "$warnings" ] && return 0
3636

3737
# go vet found issues

0 commit comments

Comments
 (0)