check for debugging lint in CI (#2578)
* check for debugging lint in CI * nit * add TODO
This commit is contained in:
parent
77e8cb2718
commit
145fb3675d
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue