From 8f646de79d9d308026874c11e0efabeb3b750b54 Mon Sep 17 00:00:00 2001 From: "Krzysztof A. Sobiecki" Date: Sat, 8 Feb 2014 15:11:55 +0100 Subject: [PATCH] A hack to check code with cpplint.py --- dist/cpplint.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 dist/cpplint.sh diff --git a/dist/cpplint.sh b/dist/cpplint.sh new file mode 100755 index 000000000..67bd01838 --- /dev/null +++ b/dist/cpplint.sh @@ -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 \;