Restore print ban, and widen the net

This commit is contained in:
Michael Vines 2019-03-05 13:24:40 -08:00
parent 1997640094
commit a539c9ad67
1 changed files with 11 additions and 1 deletions

View File

@ -15,7 +15,17 @@ declare prints=(
'eprintln!'
)
if _ git grep "${prints[@]/#/-e }" src; then
# Parts of the tree that are expected to be print free
declare print_free_tree=(
'core/src'
'drone'
'metrics'
'netutil'
'runtime'
'sdk'
)
if _ git grep "${prints[@]/#/-e }" -- "${print_free_tree[@]}"; then
exit 1
fi