Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exclude folders from Net Beans 8 PHP code analysis

I've been using Net Beans 8 for PHP development at work for the past year or so, and found (Since updating to 8.0 and generating new projects) that the code analyzer detects errors in some of the free libraries we use, which in turn causes the project to be marked as having errors (Red exclamation mark on the Projects browser).

Since we do not mantain these libraries, I added them to the Project Properties -> Ignored Folders -> Extra Folders for Code Analysis settings of my current project (I don't want to exclude them from the project, since we use the autocomplete/intellisense feature of the IDE), but this had no visible effect: The files are still marked as having an error, as well as the project.

Am I using the code analyzer exclusions feature wrongly? Is there any way to have the selected folders excluded from error checking but still have them visible within the project?

Thanks!

like image 502
Dash Avatar asked Jul 14 '14 15:07

Dash


1 Answers

It seems to work when you add the folder to both boxes. The folders won't display in the project folder list, no errors are being displayed. But the autocomplete still shows all (in my case "WordPress") library functions stored in these folders.

Project folder settings

like image 71
mch Avatar answered Nov 15 '22 16:11

mch