Restore print ban, and widen the net
This commit is contained in:
parent
1997640094
commit
a539c9ad67
12
ci/nits.sh
12
ci/nits.sh
|
@ -15,7 +15,17 @@ declare prints=(
|
||||||
'eprintln!'
|
'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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue