JSLint's 'Tolerate Stupidity'

biril picture biril · Apr 29, 2012 · Viewed 7.8k times · Source

Anyone know what JSLint's 'Tolerate Stupidity' option is all about? What family of warnings does it disable?

I've found some reference to Node.js and "Sync" methods (including Crockford's comment that "it is very well named") but no clear answer.

thanks.

Answer

eyelidlessness picture eyelidlessness · Apr 29, 2012

According to the documentation, it does this:

true if blocking ('...Sync') methods can be used.

Evidently Node Sync methods are blocking, and Crockford hates blocking operations in JS.

Note: There's a lot of stuff JSLint is picky about that may be more a matter of taste than a matter of code quality. Crockford is known to be rather opinionated about certain conventions and doesn't distinguish these in JSLint from actually harmful code. That's why there's tools like JSHint which tend to be more forgiving of these matters of taste.