This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 252758

Summary: More intelligent warning: Expected "!==" and instead saw "!=".
Product: javascript Reporter: NukemBy
Component: EditorAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description NukemBy 2015-06-02 16:50:43 UTC
Yes, usage of '===' / '!==' is more appropriate in 99.9% of cases in JavaScript, though in some really rare case I do need to use '==' and '!=', but that single occurrence spoils the 'green' state of my entire file. 

I do not want to disable this warning completely, but I'd like to have ability to disable it for a particular single expression, for example by using double parentheses:

- - - - - - - - - - - - 
if ((a == b)) {
  // do something
}

or

if ( ((a == b)) && ((c == d)) ) {
  // do something
}


- - - - - - - - - - - - 
As far as I know, JSLint absolutely does not tolerate '==' and '!='.