Search code examples
google-style-guidecpplint

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?


Solution

  • 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