From 3e5904114795ddb6863c6c46f366ac36c83d1c04 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sat, 10 Dec 2016 11:54:54 +0100 Subject: test.bash: check for naked "panic()" calls --- test.bash | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test.bash b/test.bash index bf47ee3..aa1adc7 100755 --- a/test.bash +++ b/test.bash @@ -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 -- cgit v1.2.3