Closed tersmitten closed 9 years ago
A really good point, thanks. Added an option: ignoreBlockComments:true
This test now passes:
it(" must implement custom standard correctly", function () {
var code = " /**\n *\n **/\n\t\tvar i = 1,\n\t\tb = 2;",
modifiers = {
"Indentation": {
"allowOnlyTabs": true,
"allowOnlySpaces": false,
"ignoreBlockComments": true
}
};
logger = sniffer.getTestResults( code, OPTIONS, modifiers );
logger.getMessages().length.should.not.be.ok;
});
It would be nice if there was a setting to relax indentation rules for JSDoc comments.
So we want to force tabs for indenting and no mixing of tabs and spaces is allowed, but it should be possible to format the comment with spaces (one):
instead of