mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
Add an all-in-one lint checking script
(imported from commit 1fbbfd2c775729295a7a061ead67812a963dc924)
This commit is contained in:
17
tools/check-all
Executable file
17
tools/check-all
Executable 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
|
||||
Reference in New Issue
Block a user