1

I already went into project properties > JavaScript > Include Path > Source and excluded my node_modules directory. But, when I run validation on the project it still tries to validate all of the javascript files in that folder.

vt97john
  • 579
  • 3
  • 10
  • 25
  • 1
    It's because tern.java doesn't support include/exclude path. I'm working on this issue https://github.com/angelozerr/tern.java/issues/292 – Angelo Jun 20 '15 at 12:18

3 Answers3

1

It's because tern.java doesn't support include/exclude path.

vt97john
  • 579
  • 3
  • 10
  • 25
1

I suggest you that you install 1.0.0-SNAPSHOT which provides the capability to exclude/include folders. To do that, configure those folder with JSDT JavaScript Include Path.

Angelo
  • 2,027
  • 13
  • 17
  • Hello Angelo. I added that 1.0.0 snapshot and i don't see where I can exclude folders from validation. Could you tell me where to go? – vt97john Jul 22 '15 at 13:44
  • Your project must have JSDT Javascript Nature after that you go at JSDT JavaScript Include Path of project properties. – Angelo Jul 24 '15 at 00:21
0

I was also annoyed by all sorts of validation errors (json, html, xml...) in the node_modules directory. I didn't had at least javascript validation errors because I added only /src/main/javascript to the JS build path.

For the other errors details are here: How to exclude specific folders or files from validation in Eclipse?, in particular check-out the comment from Jonatan Cloutier.

arpadf
  • 413
  • 3
  • 13