The current enum detection is overly aggressive. As NestingLevel only applies per line (?) it classifies many if not most object literals as enum declarations and adds superfluous line breaks into them. This change narrows the heuristic by requiring an assignment just before the open brace and requiring the line to start with an identifier.
Details
Details
Diff Detail
Diff Detail
Event Timeline
mprobst updated this object.
This revision is now accepted and ready to land.Mar 15 2015, 6:58 AM