Eclipse/Zend Studio,停止验证项目树的部分内容
我有一些显示“警告”的外部库,我想停止验证我的项目的这一部分,因为它干扰了我的源代码中的实际警告消息。这可能吗?
我正在使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以尝试转到“首选项”/“验证”/“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.
我对我们正在引入的依赖项也遇到了同样的问题,之前的答案没有帮助(也许是因为它在过去 7 年里发生了变化)。我在 Zend 论坛上找到了一个解决方案。
警告:如果您的文件有错误,您可能不应该执行这些步骤!
总结一下:
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: