How to make JSLint scan the whole file?

javascript, jslint, notepad++

Solution

There's a maximum number of errors option that defaults to 50

Maximum number of errors `maxerr` The maximum number of warnings reported. (default is 50)

You can see all the options on the jsLint website.

Set it to a few thousand and it should be fine :)

Update

This seems to be a special case for having variables not at the top of the file. You can try setting `undef` or `vars` to true. If you don't like that you might consider jsHint, a fork of jsLint thats designed to be more configurable.

Problem

I am using JSLint to scan some Javascript code for potential errors. I'm using Notepad++ with the JSLint plugin. The problem is - it just scans, say `x%` of file and then stops. I have unchecked the Stop on first error option too but I get the same result. It still stops after scanning only a part of rhe file. Is there anyway to make JSLint scan the whole file instead of some percent of file? Edit: I've set the `maxerr` option to 10000, but the scan stops at just 41 errors and displays (1% scanned) Edit 2: Currently, my JSLint options look like this: `/*jslint indent: 50, maxerr: 10000, passfail: false, safe: true, adsafe: true, debug: true, evil: false, continue: true, css: false, on: false, fragment: false, es5: true, bitwise: true, regexp: false, eqeq: true */`

Original source

Related problems