Add an all-in-one lint checking script

(imported from commit 1fbbfd2c775729295a7a061ead67812a963dc924)
This commit is contained in:
Keegan McAllister 2012-10-04 14:30:01 -04:00
parent d8b678c75d
commit 48f0386d26
1 changed files with 17 additions and 0 deletions

17
tools/check-all Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
SCRIPT_DIR="$(readlink -f "$(dirname "$0")")"
EXITCODE=0
if ! "$SCRIPT_DIR"/jslint/check-all; then
EXITCODE=1;
fi
if find "$(readlink -f "$SCRIPT_DIR"/..)" -name confirmation -prune -o -name '*.py' -print0 \
| xargs -0 pyflakes \
| grep -v 'imported but unused'; then
EXITCODE=1;
fi
exit $EXITCODE