check for debugging lint in CI (#2578)
* check for debugging lint in CI * nit * add TODO
This commit is contained in:
21
ci/nits.sh
Executable file
21
ci/nits.sh
Executable 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
|
Reference in New Issue
Block a user