在Eclipse中排除/禁用验证 [英] Excluding/Disabling Validation in Eclipse
问题描述
我已尝试禁用项目属性中的所有验证器。我一次进入一个验证器,并将规则添加到排除组,以排除特定的文件夹。我从项目属性中的PHP构建路径中删除了这些文件夹。但是,我的问题视图/标签仍然散布着数千个红旗,主要来自我们用来保存外部元素(Apache,PHP等)的文件夹。你知道,典型的有一个我们目前使用的具体版本的副本一些事情。
信噪比非常糟糕,我无法使用视图,这是一个耻辱。如果我不会有IDE的好处,那么我也可以使用vim来实现这一点(我用它来代替其他的东西,但是对于这个代码库来说,一个好的IDE是一个更好的选择,我可以让它工作)。在我看来,能够右键单击项目中的文件夹并选择从验证排除是一个明显的功能,但是没有这样的功能。有没有办法让验证器(PHP,HTML等)忽略我需要忽略的文件夹?
解决方案;
- 右键单击项目
- 选择属性
- 选择验证
- 选中启用项目特定设置
- 在XML验证器行中,单击...按钮
- 选择排除Gruop
- 点击添加规则
- 选择'文件夹或文件名'
-
- 选择未验证的文件或文件夹。
- 单击完成
- 单击确定
- 单击确定
这解决了我的问题。因为eclipse验证为生成的GWT文件提供错误。
最好的问候。
I have the (mis)fortune of having a large project source-base in which I am working primarily on PHP and JavaScript. I have to have the full project area as the project root in Eclipse, but unfortunately this includes several directories that drive the validation built into WST/DLTK/etc. nuts.
I have tried disabling all validators in the project properties. I have gone into the validators one at a time and added rules to the "Exclude Group" set to exclude the specific folders. I have removed the folders from the PHP build path in the project properties. And yet, my Problems view/tab is still littered with thousands of red flags that stem mostly from a folder that we use to keep copies of external elements (Apache, PHP, etc.). You know, typical "have a copy of the specific versions we currently use" sort of thing.
The signal-to-noise ratio is so bad that I'm unable to use the view at all, which is a shame. If I'm not going to have the benefits of the IDE, I might as well be using vim for this (I use it for other stuff, but for this codebase a good IDE is a better choice, providing I can get it to work). It seems to me that it would be an obvious feature to be able to right-click a folder in a project and select "Exclude from Validation", but alas there is no such feature. Is there another way to get the validators (PHP, HTML, etc.) to ignore the folders I need ignored?
Tried solution;
- Right click project
- Select properties
- Select validation
- Check Enable Project specific settings
- On the XML Validator row, click the '...' button
- Select Exclude Gruop
- Click Add rule
- Select 'Folder or file name'
- Click Next
- Select files or folder which are not validated.
- Click Finish
- Click OK
- Click OK
This solved my problem. Because eclipse validation gives error for generated GWT files.
Best regards.
这篇关于在Eclipse中排除/禁用验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!