-
Notifications
You must be signed in to change notification settings - Fork 59
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
Upgrade Fantomas and add CheckFormat to build pipeline #195
Conversation
Hello @sergey-tihon, @yisusalanpng is an intern at the Open-Source team at G-Research. @yisusalanpng you will need to check the Changelog file to deduce if you need to change any |
All set! Looks like the same setting got renamed twice, so only that one setting needed changing. |
Is there a "migration" story for setting? How Fantomas user should keep editorconfig up-to-date? Read release notes? |
I'll add some notes on how to upgrade from v4 to v5 (stable). This is a bit of a unicorn situation where a project is using a feature that was still somewhat in development. I'm very grateful you are doing this, as it can provide some insights into how this new feature faires in the wild. Our changelog is the source of truth to know what changed between releases. |
value | ||
field | ||
specLink | ||
obj) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nojaf @yisusalanpng here I also a little bit surprised
inherit SwaggerSchemaParseException(sprintf
"Value `%s` is not allowed for field `%s`(See %s for more details).\nObject:%A"
value
field
specLink
obj)
why Fantoms does not insert line break before sprintf
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There might have been an offset rule for that pre-F# 6 relaxations.
To produce valid code, we needed to put all the code after the (
.
This doesn't seem a problem anymore and could be improved.
@yisusalanpng could you please report this issue using the online tool?
@sergey-tihon is this good to go? |
Thank you @yisusalanpng & @nojaf for this PR Would be nice if you can try to format https://github.com/fsprojects/FSharp.TypeProviders.SDK as well. |
"fantomas-tool": { | ||
"version": "5.0.0-alpha-002", | ||
"fantomas": { | ||
"version": "5.0.0-alpha-010", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah shoot, this is already merged. @yisusalanpng I released alpha 11 on Friday. Would you mind making another PR?
Great, we can take a look at that as well. |
@nojaf Could you give this a look please?
Also does .editorconfig needs changing?