Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#152 New Continuation format Req

open
nobody
5
2012-04-30
2012-04-30
John Skaller
No

Checking the docs, I don't see support for my "I hate boxes" style rules. Under these rules, a continuation is exactly one extra indent. For example:

if (x > y ||
y > z) { x =
1 +23;

is ugly and badly formatted but follows the rule. Astyle seems to want to put the y > z under the x > y in the conditional and my rules prohibit such inconsistent indentation.

My rule is mandatory for any system which uses variable width characters, such as most IDEs or HTML display.
Indentation is not permitted to depend on the indentation of the any character on the previously line other than the first non-whitespace.
This is a core indentation rule. All formatters should follow it (which would ban ALL atsyles current formatting rules :)

Discussion