You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add some more tests to pin down comment indentation in switches. (#1180)
I spent a bunch of time investigating whether comments in switches that
aren't inside a case body (i.e. not between the "case" line and some
statement inside the case) should be indented to align with the cases
or the bodies.
After trying a bunch of alternatives and running them on a big corpus,
I concluded that the current behavior (always align to the cases)
actually works very well in almost all real-world code. But it's not
pinned down well by tests, so this does that.
0 commit comments