check for debugging lint in CI (#2578)

* check for debugging lint in CI
* nit
* add TODO
This commit is contained in:
Rob Walker 2019-01-28 18:32:30 -08:00 committed by GitHub
parent 77e8cb2718
commit 145fb3675d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 0 deletions

21
ci/nits.sh Executable file
View File

@ -0,0 +1,21 @@
#!/usr/bin/env bash
#
# Project nits enforced here
#
set -e
cd "$(dirname "$0")/.."
source ci/_
# please don't print from --lib...
declare prints=(
'print!'
'println!'
'eprint!'
'eprintln!'
)
if _ git grep "${prints[@]/#/-e }" src
then
exit 1
fi

View File

@ -13,6 +13,7 @@ _ cargo fmt --all -- --check
_ cargo clippy --all -- --version
_ cargo clippy --all -- --deny=warnings
_ ci/audit.sh
_ ci/nits.sh || true # TODO: remove || true once all println!s are expunged
_ book/build.sh
echo --- ok