mdevils/node-jscs — pull request #333 by Rantanen (2014-04-12 00:01:10+00:00)
Title: Implement requireSpacesInsideParentheses

Implements requiredSpacesInsideParentheses option with "all" and
"allButNested" options.

"all" - requires spaces after opening and before closing parentheses.
"allButNested" - allows writing nested brackets immediately next to
parentheses. This includes all brackets: (), [], {}

Closes #313

--------

First, sorry in case I'm stepping on @markelog's toes with this. I know he wanted to do this three months ago, but I haven't seen any progress in his fork.

Noq... this might also close #92, but there are some points in that issue that are not covered - mainly the grouping.

The nested implementation in this one is meant for cases with multiple nested function calls for example:

getValue( function( err, value ) {
// ...
}); // <- nested bracket

#92 suggests nesting to also allow grouping parentheses, ie:

requireSpacesInsideParenthses: "allButNested"
for( ; (e = e[ i ]) != null; i++ ) {

Personally I feel this case should not be included in this rule, but this is based purely on my requirements.