Skip to content
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

Incorrect movement of a comma #966

Closed
1 of 3 tasks
Smaug123 opened this issue Jul 13, 2020 · 0 comments
Closed
1 of 3 tasks

Incorrect movement of a comma #966

Smaug123 opened this issue Jul 13, 2020 · 0 comments

Comments

@Smaug123
Copy link
Contributor

Smaug123 commented Jul 13, 2020

Issue created from fantomas-online

Code

let f =
    5
    |> fun i -> i + 1
    , 6

Result

let f =
    5
    |> fun i -> i + 1,
    6

Problem description

Slightly hilarious, certainly very bad coding style anyway, but the comma is required to be on the next line here (again, it's a precedence problem).

Extra information

  • The formatted result breaks by code.
  • The formatted result gives compiler warnings.
  • I or my company would be willing to help fix this.

Options

Fantomas Master at 07/11/2020 18:08:27 - a67f3a3

Name Value
IndentSize 4
MaxLineLength 120
SemicolonAtEndOfLine true
SpaceBeforeParameter true
SpaceBeforeLowercaseInvocation true
SpaceBeforeUppercaseInvocation true
SpaceBeforeClassConstructor true
SpaceBeforeMember true
SpaceBeforeColon true
SpaceAfterComma true
SpaceBeforeSemicolon true
SpaceAfterSemicolon true
IndentOnTryWith true
SpaceAroundDelimiter true
MaxIfThenElseShortWidth 40
MaxInfixOperatorExpression 50
MaxRecordWidth 40
MaxArrayOrListWidth 40
MaxValueBindingWidth 40
MaxFunctionBindingWidth 40
MultilineBlockBracketsOnSameColumn true
NewlineBetweenTypeDefinitionAndMembers true
KeepIfThenInSameLine true
MaxElmishWidth 40
SingleArgumentWebMode true
AlignFunctionSignatureToIndentation true
AlternativeLongMemberDefinitions true
StrictMode false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants