-
-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update constructor formatting to match MS Style guide #1359
Comments
The setting should not be changed or impacted in any way here.
The existing way Fantomas formats it does not adhere to either style and that is the bug to me. |
Makes sense 👍
Actually, the official guide is inconsistent about this particular point (at least in the case of there being a return type annotation): dotnet/docs#22296
I agree. |
Thanks for starting the conversation at dotnet/docs. |
Issue created from fantomas-online
Code
This is how it's formatted with
AlternativeLongMemberDefinitions = true
:Result
This is how it's formatted with
AlternativeLongMemberDefinitions = false
(the current default):Problem description
This is a violation of the "avoid name-sensitive alignment" clause of the F# code formatting guidelines.
Se also the F# code formatting guidelines, section Place parameters on a new line for long definitions. It demonstrates how this concrete case should be formatted:
Based on this, I suggest that
AlternativeLongMemberDefinitions
should betrue
by default.Extra information
Options
Fantomas Master at 01/09/2021 08:58:25 - ca42f0d
Default Fantomas configuration
The text was updated successfully, but these errors were encountered: