-
Couldn't load subscription status.
- Fork 69
Developing: Running Cpp Lint Locally (Windows)
Anthony Nandaa edited this page Oct 17, 2022
·
5 revisions
Install CppLint
- You need to have Python installed, e.g. Python3.9
- In admin mode:
pip3 install cpplint - If you haven't already, add the
site-packagesdirectory (eg.C:\Python39\Lib\site-packages) in the PATH environment variable. - When you open a new terminal,
cpplint.py/cpplintexecutable should be available.
Run the linter for the LogMonitor project:
- From the
/LogMonitordirectory, run:cpplint --filter=-build/namespaces,-readability/casting,-runtime/reference,-whitespace/braces,-whitespace/parens,-whitespace/newline,-whitespace/comments,-build/c++11 --exclude=LogMonitor/LogMonitorTests --recursive --linelength=120 ./<specify-your-file-path> - Please note that the project already has about 95 historical violations, just fix the lines that have to do with your changes.