Make govet check glog.Info/Warning calls
The default set of names covered by govet's checking of Printf-like
functions includes Log, Error, and Fatal, but not Info or Warning.
@@ -30,7 +30,7 @@ function govet_blacklist_contains() {
}
for test_dir in $(os::util::list_go_src_dirs); do
- if ! result="$(go tool vet -shadow=false "${test_dir}" 2>&1)"; then
+ if ! result="$(go tool vet -shadow=false -printfuncs=Info,Infof,Warning,Warningf "${test_dir}" 2>&1)"; then
while read -r line; do
if ! govet_blacklist_contains "${line}"; then
echo "${line}"
