tern.java
tern.java copied to clipboard
Validators should be run on JS folders only
In a JS project's properties there's an Include Path section which among others allows one to set the source folders. Here I have a js
folder listed as source folder, with the exclusion */node_modules
(it's a Node.js project).
The problem is that folder js/xyz/node_modules
is scanned by JSHint for errors, when it should not be (which is annoying, those are third party modules). I also tried excluding this folder specifically, but it doesn't have any effect. It looks like tern does not take into account exclusions specified in on source folders.
I have not tested if inclusions are observed.
Forgot to say I'm using the latest release, 1.2.0.
You must use **/node_modules/*
as pattern.
This does the trick for tern, but has side effects with JSDT because the pattern **/node_modules/*
only excludes files, not folders.
Sorry I have not understood. I suggest you that you share a little project with your problem and tell me which files causes problems. Thanks.