6

I'm using jslint4java in eclipse. Unfortunately I have a few huge dictionary files that never change but every time when the workspace is built, linting those files takes ages.

Is it possible to exclude specific files from jslint4java and how can this be configured?

csupnig
  • 3,327
  • 1
  • 24
  • 22

3 Answers3

2

In the version of the jslint4java Eclipse plug-in that I have (1.0.1.201207042009) there is an "Exclude files that match these patterns from JSLint:" field in the jslint4java preferences; I believe this is exactly what you are looking for.

It's below the "Make JSLint Laxer" list, on the right; if you have a long list of predefined global variables (as I do) you may have to scroll to see it.

machineghost
  • 33,529
  • 30
  • 159
  • 234
0

When you enter an exclusion pattern as mentioned above you need to disable and re-enable jslint on the project for it to take effect. Cost me an hour...

geo_james
  • 203
  • 3
  • 8
-1

Another note on excluding files using that pattern option. In my case I wanted to exclude every file that ended in .min.js. So, naturally I assumed the pattern would be *.min.js.

WRONG!

The pattern was just .min.js

  • This may be a useful tip but it does not answer the question and should be a comment to one of the real answers instead. – tomsv May 13 '13 at 16:17