从 Net Beans 8 PHP 代码分析中排除文件夹 [英] Exclude folders from Net Beans 8 PHP code analysis

查看:56
本文介绍了从 Net Beans 8 PHP 代码分析中排除文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在过去一年左右的时间里,我一直在使用 Net Beans 8 进行 PHP 开发,并且发现(自更新到 8.0 并生成新项目以来)代码分析器检测到我们使用的一些免费库中的错误,这反过来会导致项目被标记为有错误(项目浏览器上的红色感叹号).

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).

由于我们不维护这些库,我将它们添加到我当前项目的项目属性 -> 忽略的文件夹 -> 代码分析的额外文件夹 设置中(我不想排除它们来自项目,因为我们使用了 IDE 的自动完成/智能感知功能),但这没有明显的影响:文件仍然被标记为有错误,以及项目.

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?

谢谢!

推荐答案

当您将文件夹添加到两个框中时,它似乎可以工作.文件夹不会显示在项目文件夹列表中,不会显示任何错误.但是自动完成仍然显示存储在这些文件夹中的所有(在我的例子中是WordPress")库函数.

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.

这篇关于从 Net Beans 8 PHP 代码分析中排除文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆