-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
Try/With with a single clause #1881
Comments
I want to start contributing, do you have any material to understand the code for newbies @nojaf ? |
Hi there @64J0, thank you for your interest in this. In general, I'd say our Contribution Guidelines cover a lot of good to know topics. You could start there. As for the code itself, I've made some videos over the years which should help you there. As for the issue you are trying to solve, this will be quite demanding on and your PR will require a high level of finishing. fantomas/src/Fantomas/CodePrinter.fs Lines 2236 to 2248 in 50d1af0
You want to do something different in the case of a single clause. I hope this helps, let me know if you have any further questions. Good luck! |
As the one who speaks for the G-Research style guidelines, I really am not very attached to our difference with Microsoft here. Honestly I think I'd be happy for us to change our style guideline, if it makes the Fantomas change substantially simpler; I don't think any of us has a very strong opinion on it. |
Well, that would simplify things a bit. @Smaug123 could we resolve G-Research/fsharp-formatting-conventions#30 with this new information? |
Thank you very much @nojaf. |
* Bump Fantomas * Update style of SynExpr.TryWith with a single clause. Fixes #1881.
Issue created from fantomas-online
Code
Result
Problem description
The MS F# style guide was updated recently and Fantomas does no longer adhere to it.
To solve this issue, a new setting will have to be introduced to still adhere to the GR style guide.
The guides diverge on this topic.
//cc @Smaug123 @pbiggar
Extra information
Options
Fantomas Master at 09/07/2021 15:59:52 - 7d861f4
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: