Shared publicly  - 
 
 
With this little script (< 200 lines), you can scan for possible signs of "Boolean trap" bad practice in your +JavaScript API. My favorite is still "Can you make up your mind?" code like:

  element.stop(true, false);
Since this is just a simple script, obviously you can tweak it to suit your need. For example, many projects do not use an explicit setter function which leads to code like enable(true) and thus the f...
1
Add a comment...