File: code_check.sh

package info (click to toggle)
dart 6.12.1%2Bdfsg4-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 57,000 kB
  • sloc: cpp: 269,461; python: 3,911; xml: 1,273; sh: 404; makefile: 30
file content (53 lines) | stat: -rwxr-xr-x 1,490 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/sh

# This shell script is for checking code style using "cpplint"
# https://code.google.com/p/google-styleguide/

CHECK_DIRS="#../dart/collision\
            ../dart/common\
            ../dart/constraint\
            #../dart/dynamics\
            #../dart/gui\
            #../dart/integration\
            #../dart/lcpsolver\
            #../dart/math\
            #../dart/optimizer\
            #../dart/planning\
            #../dart/renderer\
            #../dart/simulation\
            #../dart/utils\
            #../apps/cubes\
            #../apps/meshCollision"
NOT_CHECK_DIRS=""
CHECK_FILES=`\
  find $CHECK_DIRS\
  -name "*.cpp"\
  -not -name "DARTCollide.cpp"\
  -not -name "BulletCollisionDetector.cpp"\
  -not -name "lodepng.cpp"\
  -not -name "error.cpp"\
  -not -name "fastdot.cpp"\
  -not -name "fastldlt.cpp"\
  -not -name "fastlsolve.cpp"\
  -not -name "fastltsolve.cpp"\
  -not -name "lcp.cpp"\
  -not -name "matrix.cpp"\
  -not -name "misc.cpp"\
  -or -name "*.hh"\
  -or -name "*.c"\
  -or -name "*.h"\
  -not -name "tri_tri_intersection_test.h"\
  -not -name "Jitter.h"\
  -not -name "lodepng.h"\
  -not -name "common.h"\
  -not -name "error.h"\
  -not -name "lcp.h"\
  -not -name "matrix.h"\
  -not -name "misc.h"\
  -not -name "odeconfig.h"\
  -not -name "btBulletCollisionCommon.h"\
  | grep -v "../dart/collision/bullet/LinearMath/"\
  | grep -v "../dart/collision/bullet/BulletCollision/"`

# cpplint
echo $CHECK_FILES | xargs python cpplint.py 2>&1