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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With