Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
189
rated 0 times [  192] [ 3]  / answers: 1 / hits: 40848  / 14 Years ago, tue, february 1, 2011, 12:00:00

I have the javascript validation working good for my own code. I want to keep the validation. But when it comes to open source library, like jquery for example, the validation creates warnings.



I don't want warnings over a downloaded library. But I want to keep warnings for my code.



I know you can exclude files from validation in the Preferences > Validation window, but the javascript validation is not there ! I've looked each validator, the javascript validator is not there.



So how can I exclude specific files from the validation ?



Here is the list of validators I have :
Screenshot



Thanks !



PS : I use Eclipse PDT.!


More From » eclipse

 Answers
88

well, probably I've managed to do what you need ;) It is a bit tricky. So my steps:




  1. downloaded Eclipse PDT (to be sure
    that it works for you, because I use
    Eclipse for Java EE)

  2. created project TestJS (it was
    JavaScript project)

  3. created two files, test.js and
    htmlparser.js (last one copied from
    John Resig's site)

  4. typed broken script in both of them, so Eclipse told me that there were errors in both of them

  5. went to Project Properties >
    JavaScript > Include Path > Source
    ,
    there is Excluded to highlight and
    press Edit button, here you are
    able to add what you want to exclude
    (file, folder, pattern).

  6. I excluded test.js file, pressed
    apply...

  7. ...and got a happy ending: now
    Eclipse point me out that there is
    error in htmlparser.js, but not in
    test.js ;)



ScreenShot:
enter



Really hope that it helps!


[#93953] Sunday, January 30, 2011, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
pranavrorys

Total Points: 466
Total Questions: 87
Total Answers: 115

Location: Barbados
Member since Sun, Nov 27, 2022
2 Years ago
pranavrorys questions
Fri, May 27, 22, 00:00, 2 Years ago
Thu, Oct 28, 21, 00:00, 3 Years ago
Sat, May 30, 20, 00:00, 4 Years ago
Fri, Dec 20, 19, 00:00, 5 Years ago
;