diff --git a/ci/nits.sh b/ci/nits.sh index 12b58f6665..0f502088cf 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