Closed urbasus closed 2 years ago
the formatter is quite dumb, it doesn't understand comments in that layout because that's against the internal style guide for the team I wrote this for.
fixing this requires a proper parser that actually understands the code, which isn't something I plan to write any time soon.
Code before formatting:
After formatting:
Not sure whether formatter should move the comment according to some canonical style guide (line above or below), or just handle the indentation right.