I propose we add configuration (or make default) for having consistent indentation of match cases.
So:
1) If all branches can placed in the same line, do that
2) If any branch must be moved to new line (due to length or multiline), move all branches to the new line
Pros and Cons
The advantages of making this adjustment to Fantomas are - more consistent code look and feel.
The disadvantages of making this adjustment to Fantomas are - reformatting existing code base (could be fixed by disabling feature by default)
I propose we add configuration (or make default) for having consistent indentation of match cases. So: 1) If all branches can placed in the same line, do that 2) If any branch must be moved to new line (due to length or multiline), move all branches to the new line
Pros and Cons
The advantages of making this adjustment to Fantomas are - more consistent code look and feel.
The disadvantages of making this adjustment to Fantomas are - reformatting existing code base (could be fixed by disabling feature by default)
Examples
From Oxpecker Existing formatting:
Proposed formatting:
Extra information
Estimated cost (XS, S, M, L, XL, XXL): M
Related suggestions: (put links to related suggestions here)
Affidavit (please submit!)
Please tick this by placing a cross in the box:
Please tick all that apply: