A hack to check code with cpplint.py

This commit is contained in:
Krzysztof A. Sobiecki 2014-02-08 15:11:55 +01:00
parent b7da89b978
commit 8f646de79d
1 changed files with 7 additions and 0 deletions

7
dist/cpplint.sh vendored Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
dire=$1
if [ x$dire == "x" ];then
dire="src"
fi
find $dire -regex '.*\.\(h\|cpp\|mm\)' -type f -exec ./dist/cpplint.py --root=src {} 2>&1 \;