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?
I am using Ubuntu, so my experience is just reference.
./cpplint.py ~/projects/* ~/projects/*/*
# or you can:
./cpplint.py ~/projects/*.* ~/projects/*/*.*
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With