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

Comment after arrow lost with KeepIndentInBranch #1759

Closed
3 tasks
nojaf opened this issue May 28, 2021 · 0 comments · Fixed by #1760
Closed
3 tasks

Comment after arrow lost with KeepIndentInBranch #1759

nojaf opened this issue May 28, 2021 · 0 comments · Fixed by #1760

Comments

@nojaf
Copy link
Contributor

nojaf commented May 28, 2021

Issue created from fantomas-online

Code

let mapOperationToWebPart (operation: OpenApiOperationDescription) : SynExpr =
    let verb = mkIdentExpr (operation.Method.ToUpper())
    let route =
        match operation with
        | _ -> // no route parameters
            let route = mkAppNonAtomicExpr (mkIdentExpr "route") (mkStringExprConst operation.Path)
            let responseHttpFunc =
                mkLambdaExpr [ ] unitExpr
                |> mkParenExpr
            infixFish route responseHttpFunc
    
    infixFish verb route

Result

let mapOperationToWebPart (operation: OpenApiOperationDescription) : SynExpr =
    let verb = mkIdentExpr (operation.Method.ToUpper())

    let route =
        match operation with
        | _ ->

        let route =
            mkAppNonAtomicExpr (mkIdentExpr "route") (mkStringExprConst operation.Path)

        let responseHttpFunc = mkLambdaExpr [] unitExpr |> mkParenExpr
        infixFish route responseHttpFunc

    infixFish verb route

Problem description

Please describe here the Fantomas problem you encountered.
Check out our Contribution Guidelines.

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 05/27/2021 20:13:28 - 4383068

    { config with
                KeepIndentInBranch = true }

Did you know that you can ignore files when formatting from fantomas-tool or the FAKE targets by using a .fantomasignore file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant