jshint/jshint — Issue #422: JSDoc combined with tabs produces many errors
Author: mckamey
Created: 2012-01-18 02:20:37+00:00
State: open

If a script uses tabs and then adds [JSdoc comments](http://code.google.com/closure/compiler/docs/js-for-compiler.html), it is quite common for IDEs to produce tab indentation followed by a single space and star on each subsequent line. e.g.,

```js
(function() {
'use strict';

/**
* My function's favorite kind of beer.
* @const
* @type {string}
*/
var BEER = 'IPA';

//...
})();
```

I understand the desire for not mixing spaces and tabs, but this seems like a legitimate exception and there is no way within the tool to disable the hundreds of errors that come from a well documented script.

The fix IMO would be to have a checkbox to disable errors from mixed spaces and tabs.

Thanks in advance.