-
-
Notifications
You must be signed in to change notification settings - Fork 190
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
Private record definition error with stroustrup style #2481
Comments
Hello, Thank you for reporting this issue. What I mean by elegant is that the fix is a tweak in existing code, without having to rewrite everything we currently have. If that is not possible then we will have to fallback Are you interested in submitting a PR for this? |
I'm not familiar with the codebase, but I am interested in submitting a PR. I'll take a look and see if I can fix the issue. |
Great 😊, you can find some notes on the codebase over at https://fsprojects.github.io/fantomas/docs/contributors/Index.html. In practice you will most likely need to make a change around: fantomas/src/Fantomas.Core/CodePrinter.fs Lines 3413 to 3429 in 0981dfe
When submitting your PR you want to check https://github.com/fsprojects/fantomas/blob/master/CONTRIBUTING.md#pull-request-ground-rules first. Don't hesitate to reach out if you have any questions. |
Is |
I would add the test in |
Issue created from fantomas-online
Code
Result
Problem description
Formatting the above code with the below options results in a compiler error.
I expected the code to remain the same after format, which was not the case. Although, I may be mistaken on the expected output
Extra information
Options
Fantomas master branch at 2022-09-07T06:05:21Z - b0916a4
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: