tree-sitter/script/lint.sh
2014-06-09 21:14:38 -07:00

16 lines
417 B
Bash
Executable file

#!/usr/bin/env bash
CPPLINT=externals/cpplint.py
CPPLINT_URL=http://google-styleguide.googlecode.com/svn/trunk/cpplint/cpplint.py
if [[ ! -f $CPPLINT ]]; then
curl $CPPLINT_URL > $CPPLINT
chmod +x $CPPLINT
fi
$CPPLINT \
--root=src \
--linelength=110 \
--filter=-legal/copyright,-readability/namespace,-whitespace/indent,-whitespace/line_length,-readability/todo \
$(find src/compiler -type f) \
2>&1