Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse CDT - Ignore directories for Code Analysis

The project that I am working on has a large number of external dependencies (library headers, for example) inside.

When I try to run code analysis, these files generate a huge number of warnings.

How can I configure the Code Analysis tool to ignore these directories when running its analysis?

like image 678
mindvirus Avatar asked Mar 13 '26 17:03

mindvirus


1 Answers

In Eclipse Project Explorer, right click a folder you want to hide and select properties. For example 'vendor' or 'lib'.

Select Properties -> Resource -> Resource Filter

Click 'Add'

Filter Type: 'Exclude All'

Applies To: 'Files and Folders'

Filter Details: Name -> matches -> '*'

Make sure 'Regular expression' is checked.

Now rebuild your index. Right click your project -> Index -> Rebuild

like image 189
Halsafar Avatar answered Mar 15 '26 07:03

Halsafar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!