forked from AliceO2Group/FlpPrototype
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cpplint.txt
16 lines (12 loc) · 838 Bytes
/
cpplint.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
### To check the code with cpplint ###
# Preparation
git clone https://github.com/google/styleguide.git googlestyleguide
cd googlestyleguide
./cpplint.py --help
# a Single file :
./cpplint.py --extensions=h,hpp,c,cxx --linelength=120 --counting=detailed ~/dev/hackathon/QualityControl/src/AlfaPublisher.cxx
(replace detailed by toplevel to have errors per toplevel categories)
# a set of files :
./cpplint.py --extensions=h,c,cxx --linelength=120 --counting=toplevel $(find ~/dev/hackathon/QualityControl -name \*.h -or -name \*.c -or -name \*.cxx | grep -vE "^\.\/build\/" )
# Statistics for a set of files
./cpplint.py --extensions=h,c,cxx --linelength=120 --counting=toplevel $(find ~/dev/hackathon/QualityControl -name \*.h -or -name \*.c -or -name \*.cxx | grep -vE "^\.\/build\/" ) 2>&1 | grep -e "Category" -e "Total error"