16 lines
399 B
Bash
Executable file
16 lines
399 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 \
|
|
$(find src/compiler -type f) \
|
|
2>&1
|