Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running CPPlint on whole project

I want to run cpplint.py on my whole project not for single file to get a report for all C/C++ files in the project. How to do this on macOS and Windows?

like image 915
T M Avatar asked Jul 09 '15 05:07

T M


2 Answers

I am using Ubuntu, so my experience is just reference.

./cpplint.py ~/projects/* ~/projects/*/*
# or you can:
./cpplint.py ~/projects/*.* ~/projects/*/*.*
like image 63
Joshua Avatar answered Sep 26 '22 22:09

Joshua


I have just find answer for some part of my question under this great post

"Shell Foo: Getting a cpplint Breakdown Report On All Project Source Files"

Here is the way how to run cpplint for a project on a Mac

.python cpplint.py --linelength=120 --counting=detailed $( find . -name \*.h -or -name \*.cc | grep -vE "^\.\/build\/" )

For Windows there is a post about integration in Visual Studio. How to integrate cpplint.py into Visual Studio

like image 45
T M Avatar answered Sep 22 '22 22:09

T M