Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to exclude specific folders or files from validation in Eclipse?

Tags:

eclipse

People also ask

How do I stop validation in eclipse?

Click Window > Preferences and select Validation in the left pane. The Validation page of the Preferences window lists the validators available in your project and their settings. To disable individual validators, clear the check boxes next to each validator that you want to disable.

What is validate option in eclipse?

Quoting from Eclipse docs: The workbench includes validators that check certain files in your enterprise application module projects for errors. By default, the workbench validates your files automatically after any build, including automatic builds.


In the Validation section of Window > Preferences you can add different rules in settings (...) column, you can add a "Folder or file name rule" in the Exclude Group for XML types.


This is what I do to exclude a folder from validation in a project. For me this works for javascript and other warnings/errors.

  • Right Click Folder
  • Click Resource, ResourceFilters
  • Click "Add"
  • Set the following Exclude All, Files and Folders, All Children, add an asterisk (*) to the File and Folder Attributes input field (highlighted in the image below)

Note: In Eclipse Indigo you have to Right click the folder and select properties and then select resource in the left navigation.

enter image description here


With Eclipse 2018-12 in an Angular-Project, i was able to get rid of validation errors in the folders, npm generates (like node_modules), just by selecting a folder and check the "Derived" check mark under "Resource".

eclipse - ignore validation on folders by check the "Derived" check mark under "Resource"

After a Project -> Clean the Errors are gone.


  1. Go to Window > Preference > Validation
  2. Find the type of validation you want to disable, for instance XML.
  3. Right-click it and select "Settings":

Eclipse validation

  1. In the "Exclude Group", click "Add rule", select "Folder or file name":

enter image description here