cpplint.sh 1.8 KB
Newer Older
L
Liangliang He 已提交
1 2 3 4
#!/usr/bin/env sh

set -e

L
Liangliang He 已提交
5 6 7 8 9
cpplint --linelength=80 --counting=detailed $(find mace -name "*.h" -or -name "*.cc")
cpplint --linelength=80 --counting=detailed --root=include $(find include -name "*.h" -or -name "*.cc")
cpplint --linelength=80 --counting=detailed --root=test/ccutils $(find test/ccutils -name "*.h" -or -name "*.cc")
cpplint --linelength=80 --counting=detailed --root=test/ccunit $(find test/ccunit -name "*.h" -or -name "*.cc")
cpplint --linelength=80 --counting=detailed --root=test/ccbenchmark $(find test/ccbenchmark -name "*.h" -or -name "*.cc")
L
luxuhui 已提交
10

11 12 13 14 15 16
cpplint --linelength=80 --counting=detailed --filter=-build/include_what_you_use $(find micro/base  -name "*.h" -or -name "*.cc")
cpplint --linelength=80 --counting=detailed $(find micro/framework  -name "*.h" -or -name "*.cc")
cpplint --linelength=80 --counting=detailed $(find micro/include  -name "*.h" -or -name "*.cc")
cpplint --linelength=80 --counting=detailed $(find micro/model  -name "*.h" -or -name "*.cc")
cpplint --linelength=80 --counting=detailed --filter=-build/include_what_you_use $(find micro/ops  -name "*.h" -or -name "*.cc")
cpplint --linelength=80 --counting=detailed $(find micro/port  -name "*.h" -or -name "*.cc")
Z
Zhang Zhimin 已提交
17
cpplint --linelength=80 --counting=detailed --filter=-build/include_what_you_use $(find micro/test \( -path micro/test/ccbenchmark/codegen -or -path micro/test/ccbaseline/codegen \) -prune -o  -name "*.h" -or -name "*.cc")
18 19
cpplint --linelength=80 --counting=detailed $(find micro/tools  -name "*.h" -or -name "*.cc")
cpplint --linelength=80 --counting=detailed --filter=-build/include_subdir $(find micro/examples \( -path micro/examples/classifier/mbed-os -or -path micro/examples/classifier/data -or -path micro/examples/classifier/install -or -path micro/examples/classifier/BUILD \) -prune  -name "*.cc" -or -name "*.h")