You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the output when using default settings (not Stroustrup).
letgetUpdateBklrEmailEvent user =match user with|{ PrimaryEmail = Some { Value = newEmail }
PersistedState = Some { PrimaryEmail = Some { Value = oldEmail }}}when newEmail <> oldEmail ->
Some(UpdateBklrEmail { Old = oldEmail; New = newEmail })|_-> None
Result when using Stroustrup
letgetUpdateBklrEmailEvent user =match user with|{
PrimaryEmail = Some { Value = newEmail }
PersistedState = Some {
PrimaryEmail = Some { Value = oldEmail }}}when newEmail <> oldEmail -> Some(UpdateBklrEmail { Old = oldEmail; New = newEmail })|_-> None
Problem description
The line break after PersistedState = Some { is unnecessary; it fits on a single line.
The sub-record inside PersistedState is formatted with name-sensitive alignment. If it has to be broken into multiple lines, it should be something like:
letgetUpdateBklrEmailEvent user =match user with|{
PrimaryEmail = Some { Value = newEmail }
PersistedState =
Some {
PrimaryEmail = Some { Value = oldEmail }}}when newEmail <> oldEmail -> Some(UpdateBklrEmail { Old = oldEmail; New = newEmail })|_-> None
Or alternatively:
letgetUpdateBklrEmailEvent user =match user with|{
PrimaryEmail = Some { Value = newEmail }
PersistedState = Some {
PrimaryEmail = Some { Value = oldEmail }}}when newEmail <> oldEmail -> Some(UpdateBklrEmail { Old = oldEmail; New = newEmail })|_-> None
Extra information
The formatted result breaks my code.
The formatted result gives compiler warnings.
I or my company would be willing to help fix this.
I would like a release if this problem is solved.
Options
Fantomas main branch at 1/1/1990
{ config with
MultilineBracketStyle = stroustrup }
Did you know that you can ignore files when formatting by using a .fantomasignore file? PS: It's unlikely that someone else will solve your specific issue, as it's something that you have a personal stake in.
The text was updated successfully, but these errors were encountered:
Issue created from fantomas-online
Code and expected output
This is the output when using default settings (not Stroustrup).
Result when using Stroustrup
Problem description
PersistedState = Some {
is unnecessary; it fits on a single line.PersistedState
is formatted with name-sensitive alignment. If it has to be broken into multiple lines, it should be something like:Or alternatively:
Extra information
Options
Fantomas main branch at 1/1/1990
Did you know that you can ignore files when formatting by using a .fantomasignore file?
PS: It's unlikely that someone else will solve your specific issue, as it's something that you have a personal stake in.
The text was updated successfully, but these errors were encountered: