You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gökhan Şimşek edited this page Jan 4, 2021
·
19 revisions
To run static code analysis, go to bin directory. And execute one of the following scripts:
(Runs in release mode by default, add debug when needed & supported)
|-- Run Static Code Analysis:
|
| // macOS, Linux
| $ bin/run-clang-tidy
| $ bin/run-scan-build
|
| // Windows
| $ bin/run-cppcheck <FILE_PATH OR DIR> (Default: /src/robomongo/)
| $ bin/run-vs-code-analysis
|__________________________________________________________________
E.g.:
// macOS, Linux
\robo\bin>run-clang-tidy
....
// Windows
\robo\bin>run-cppcheck.bat
---------------------- Running cppcheck ----------------------
Checking ..\src\robomongo\app\main.cpp ...
Checking ..\src\robomongo\app\main.cpp: Q_OS_MAC...
Checking ..\src\robomongo\app\main.cpp: Q_OS_WIN...
1/125 files checked 0% done
Checking ..\src\robomongo\app\main_mongo.cpp ...
...
---------------------- Info ----------------------
Cppcheck 2.1
Command called: cppcheck ..\src\robomongo\ --enable=all --std=c++17
---------------------- End of cppcheck ----------------------