From a539c9ad67826a613452ed65004a1c080d5f190d Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Tue, 5 Mar 2019 13:24:40 -0800 Subject: [PATCH] Restore print ban, and widen the net --- ci/nits.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ci/nits.sh b/ci/nits.sh index 12b58f666..0f502088c 100755 --- a/ci/nits.sh +++ b/ci/nits.sh @@ -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