-
-
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
Regression in alternative_long_member_definitions behaviour, or docs miss? #1666
Comments
Hello, thank you for showing interest in this project. Are you interested in submitting a PR to update the documentation?
MultilineBlockBracketsOnSameColumn was introduced to facilitate the G-Research style guide. |
Sure, I can prepare a PR, maybe later today I will find some time. But first I need same clarity what should be the proper thing to do. It looks like now the only difference this setting makes, is the placement of return type and What do you think? |
Well, there is a bit of history and context to this. Originally the Microsoft guide had a different view on things and I believe it was changed in dotnet/docs#21690. The change was introduced to avoid "vanity alignments". These things were discussed without having a clear view on the implementation side of things in Fantomas. Next, there is also something worth mentioning about the style guides. The Microsoft one is an open one. You can discuss and contribute to it via GitHub (there is a feedback button down below the page). The G-Research one is closed. They have published their guide to GitHub but it represents their vision. In case things stay as they are, the only thing that needs a change is the documentation in Fantomas. To summarize, it sorta depends on how invested you are in all of this. You can start conversations on both sides, try and get the intent of why things are why they are and see how you can reconcile them. |
fix: AlternativeLongMemberDefinitions changed in fsprojects#1334 but were not reflected in documentation. Closes: fsprojects#1666
For now, I created a PR with a docs fix. Thank you for providing additional context! As for discussing further aligning the code style for constructors and member definitions with G-Research and Microsoft, then unless you would like to engage with them directly, I might open some GitHub issues to align that setting later this week. |
Feel free to engage with both guides yourself. Thank you for your efforts! |
Issue created from fantomas-online
Code
Result
Problem description
Regression in fsharp_alternative_long_member_definitions – expected no change whatsoever, got alternate formatting. Flipping the setting doesn't change the parenthesis placement formatting.
Is it caused by #1334 missing updating the docs?
Anyway, extra question then – why tuples are not taken into consideration with
MultilineBlockBracketsOnSameColumn
?Options
Fantomas Master at 04/17/2021 11:23:36 - 26674f9
Default Fantomas configuration
Did you know that you can ignore files when formatting from fantomas-tool or the FAKE targets by using a .fantomasignore file?
The text was updated successfully, but these errors were encountered: