disable eclipse validators

2019-08-19 05:11发布

问题:

I do have a project which includes ZF library. In the problems tab I get all the warnings from the Zend library. My problem is that I want to hide all that. I've tried adding Exclude Group settings and rules for HTML for PHP validator and even I've suspended all validators for global settings and as a customized project settings and nothing works. The strange thing is that most common type of problem is DLTK and I cannot find this particular validator.

回答1:

Not all things in Eclipse that validate are validators. A lot of validation comes from builders. It is quite easy to disable a builder, but there could be unintended consequences if the builder is supposed to generate artifacts in addition to validation. To disable a builder, go to Project Properties -> Builders and uncheck it.

As an alternative, some tools that include builders allow you to specify that certain types of problems should not be reported. I am not familiar with PHP tools, but I would poke around under preferences.