JSLint Stop in Visual Studio

I installed JSLint in VS2010 . It works fine, except that after it gets to line 50 of the file that it checks, it stops with the message JS Lint: Stopping. (37% Scanned) JS Lint: Stopping. (37% Scanned) .

When I put the same JS in a JSFiddle and use the JSLint tool there ... I get a report covering the entire file. How can I make JSLint in Visual Studio scan the entire file?

+4
source share
1 answer

Does it report a validation error on line 50? Perhaps if you can list the contents of line 50, someone might know which function he doesn't like.

Unfortunately, JSLint stops scanning when it encounters in a loop a variable that has not been defined outside the loop, for example.

for (var i = 0; i <x; i ++)

JSLint is very upset if you declare a variable as shown - I think this is due to the potential you don’t understand that the variable does not have a loop area.

I had a quick game with JSFiddle JSLint, and I could not get it to report something as an error, so either it didn’t work or it uses the old JSLint, which does not include a function that forces it to stop in Visual Studio. Failure to use http://www.jslint.com/ ?

+4
source

Source: https://habr.com/ru/post/1400439/


All Articles