test.bash: check for naked "panic()" calls

This commit is contained in:
Jakob Unterwurzacher 2016-12-10 11:54:54 +01:00
parent c9f4400e6d
commit 3e59041147

View File

@ -37,4 +37,9 @@ else
echo "\"go tool vet\" not available - skipping"
fi
if grep -R "panic(" internal ; then
echo "Please use log.Panic instead of naked panic!"
exit 1
fi
) 200> $LOCKFILE