Disable Javascript Eclipse validation for specific folders

I would like to disable Javascript Eclipse checking in specific folders, namely the resource folder filled with Yii. I tried to add validation filters to exclude the folder by following these steps in Eclipse

  • Window> Settings> Validation
  • Click Options to authenticate client-side JavaScript.
  • Add Exception Group> Add Rule
  • Check folder and file name> select the folder I want to exclude

However, this does not work. Eclipse still notes multiple jquery files by mistake. Any ideas for this? Thanks in advance!

+6
source share
1 answer

Client-side JavaScript Validator only checks client-side JavaScript, i.e. material on web pages. What you want to do is put jQuery in the folder that you designate as the library folder, and not in the source folder (libraries are not checked using the JavaScript Validator builder [you will see this on the Properties page of the project dialog box]). If you need, you can exclude the subfolder of the source folder in your JavaScript Include Path project to cut out the spot for the library folder.

+5
source

Source: https://habr.com/ru/post/924445/


All Articles