Closed himdel closed 8 years ago
.. Also added support for ArrowFunctionExpression
, so now even fooooooooooo => baaaaaaaaar
is ignored.
Coverage decreased (-0.001%) to 99.327%
?
Also, would you mind adding example for this param?
Coverage is decreased because 100% of shorter code is less code covered than 100% of longer code , apparently :).
Also, would you mind adding example for this param?
Sure, will do..
..added a few examples..
Thank you!
This closes #2032 -
maximumLineLength
allExcept: ['functionSignature']
- broken in IIFE.I've essentially rewritten the functionSignature handling to use
iterateNodesByType
instead of the recursivesearchBodyForDecl
, and includeFunctionExpression
(as well as the previously checkedFunctionDeclaration
andMethodDefiniton
)Also abstracted common boilerplate into a local
removeLoc
function - the empty lines.loc.start.line - 1
through.loc.end.line - 1
logic is used in multiple places there and warrants a helper.Spec changes:
should not report functions within IIFE blocks
should
toshould not
in.. report functions stored in variables
should report functions within comments
- that one mostly so that we verify at least something can fail (which may previously have been the job ofshould report functions stored in variables
)