fantomas icon indicating copy to clipboard operation
fantomas copied to clipboard

Regression: Stroustrup bracket style in anonymous record type parameter is not respected

Open cmeeren opened this issue 11 months ago • 0 comments

Issue created from fantomas-online

Related: #2706

Code and expected

let private asJson (arm: IArmResource) =
    arm.JsonModel
    |> convertTo<{|
        kind: string
        properties: {| statisticsEnabled: bool |}
    |}>

Result

let private asJson (arm: IArmResource) =
    arm.JsonModel
    |> convertTo<
        {|
            kind: string
            properties: {| statisticsEnabled: bool |}
        |}
        >

Problem description

I just updated from 6.2.3 to 6.3.0. Suddenly all my anonymous record type parameters are using aligned style even though I have configured Stroustrup style.

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.
  • [x] I would like a release if this problem is solved.

Options

Fantomas main branch at 2024-03-18T09:36:28Z - 74fb395e7aa953eda92ed1e06d940ffcefa1b5f0

    { 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.

cmeeren avatar Mar 22 '24 23:03 cmeeren