How to exclude specific folders or files from validation in Eclipse?
We have a bunch of malformed XML files used in unit tests to check if our application can handle them.
Eclipse marks this XML files with errors, polluting the "problem view".
Is there a way to exclude a specific folder from Eclipse validators?
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.
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".
After a Project -> Clean the Errors are gone.