Eclipse/Zend Studio,停止验证项目树的部分内容

发布于 2024-10-06 12:29:36 字数 125 浏览 0 评论 0原文

我有一些显示“警告”的外部库,我想停止验证我的项目的这一部分,因为它干扰了我的源代码中的实际警告消息。这可能吗?

我正在使用 Zend Studio,但它基于 eclipse,所以我认为相同的方法将适用于这两个应用程序。

I have some external libraries that are showing 'warnings', I want to stop validation of this part of my project because it is interfering with actual warning messages from my source code. Is this possible?

I am using Zend Studio but it is based on eclipse so I think the same method will apply on both applications.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

染柒℉ 2024-10-13 12:29:37

您可以尝试转到“首选项”/“验证”/“PHP 文件的 HTML 语法验证器”/单击“设置”。首先添加排除组,然后添加包含库文件夹的规则。这至少适用于纯 PHP 警告。我有一个关于 DLTK 警告的类似问题,并且还发布了这个问题到 ZS 论坛,但我对那里没有太多希望。

You can try to go to Preferences/Validation/HTML syntax validator for PHP files/ click on settings. Add first an exclude group and then add a rule with your library folder. This will work at least with pure PHP warnings. I have a similar question concerning DLTK warnings and also posted this question to ZS forums, but I have not too much hope from there.

浅暮の光 2024-10-13 12:29:37

我对我们正在引入的依赖项也遇到了同样的问题,之前的答案没有帮助(也许是因为它在过去 7 年里发生了变化)。我在 Zend 论坛上找到了一个解决方案

警告:如果您的文件有错误,您可能不应该执行这些步骤!

总结一下:

  1. 右键单击该文件夹。
  2. 单击“用户作为库文件夹”

I was having the same issue with a dependency we were pulling in and the previous answer didn't help (maybe because it changed in the last 7 years). I found a solution on the Zend Forums.

Word of caution: if your files are having errors, you probably should NOT preform these steps!

To summarize:

  1. Right-click on the folder.
  2. Click "User As Library Folder"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文