Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cppcheck GUI: Excluding a file or folder from checking

I am using Cppcheck GUI to scan my projects (new in Cppcheck, just starded to use it) and want to exclude some sub folders when I am scanning my project.

How to exclude some sub folder when scanning project folder with cppcheck GUI?

I have watched some videos on YouTube and tried to exclude as shown in this video but it still scanning excluded sub folders.

Thanks in advance.

like image 338
T M Avatar asked Jun 20 '15 13:06

T M


1 Answers

Excluding a file or folder from checking To exclude a file or folder, there are two options. The first option is to only provide the paths and files you want to check.

cppcheck src/a src/b

All files under src/a and src/b are then checked. The second option is to use -i, with it you specify files/paths to ignore. With this command no files in src/c are checked:

cppcheck -isrc/c src

ref : http://cppcheck.sourceforge.net/manual.pdf

like image 168
liu bluse Avatar answered Sep 21 '22 12:09

liu bluse