tree-sitter/script/lint.sh

17 lines
417 B
Bash
Raw Normal View History

2014-03-09 21:37:03 -07:00
#!/usr/bin/env bash
2014-05-09 16:32:57 -07:00
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 \
2014-03-09 23:51:33 -07:00
--root=src \
--linelength=110 \
2014-06-09 21:14:38 -07:00
--filter=-legal/copyright,-readability/namespace,-whitespace/indent,-whitespace/line_length,-readability/todo \
2014-04-28 21:46:43 -07:00
$(find src/compiler -type f) \
2014-03-09 23:51:33 -07:00
2>&1