0
Developing: Running Cpp Lint Locally (Windows)
Anthony Nandaa редактировал(а) эту страницу 2022-10-17 19:48:01 +03:00
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-packages
directory (eg.C:\Python39\Lib\site-packages
) in the PATH environment variable. - When you open a new terminal,
cpplint.py
/cpplint
executable should be available.
Run the linter for the LogMonitor
project:
- From the
/LogMonitor
directory, 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.