jshint/jshint — Issue #390: Possible Bug with eqeqeq and eqnull
Author: claytoncarney
Created: 2011-12-20 16:16:15+00:00
State: open

Noticed something odd parsing jQuery (http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js) at jshint.com.

Yesterday, jshint reported so many eqeqeq errors that it stopped parsing at maxerr.

Today, it seems to be missing most of them:

A grep of the source reports 34 instances of /\s==\s/ (32 are /\s==\snull/), but jshint reports only 2 occurrences.

A grep of the source reports 30 instances of /\s!=\s/ (27 are /\s!=\snull/), but jshint reports only 1 occurrence.

I've also noticed that today the jshint string in the report is '/*jshin */', but yesterday it was something like '/*jshint forin:true, noarg:true, noempty:true, eqeqeq:true, bitwise:true, strict:true, undef:true, curly:true, browser:true, indent:4, maxerr:50 */'.

This is my second day with jshint, so it could be me. Can anyone else confirm this problem?