diff options
author | Jakob Unterwurzacher | 2016-12-10 11:54:54 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-12-10 11:54:54 +0100 |
commit | 3e5904114795ddb6863c6c46f366ac36c83d1c04 (patch) | |
tree | 1374f084391a960e5e437ed4ec0497d27f557514 /test.bash | |
parent | c9f4400e6dc71a36df5dc9725f52a8968f5f9803 (diff) |
test.bash: check for naked "panic()" calls
Diffstat (limited to 'test.bash')
-rwxr-xr-x | test.bash | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |