tree-sitter/script/lint.sh
Max Brunsfeld 2e7ffb4d14 Tweak auto-format settings
Prefer lines that exceed 80 characters by a small margin to
line breaks in argument lists
2014-09-09 13:15:40 -07:00

14 lines
435 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
FILTERS='--filter=-legal/copyright,-readability/todo'
$CPPLINT --linelength=90 --root=include $FILTERS include/tree_sitter/compiler.h 2>&1
$CPPLINT --linelength=90 --root=src $FILTERS $(find src/compiler -type f) 2>&1