fsprojects / fantomas

FSharp source code formatter
https://fsprojects.github.io/fantomas
Other
770 stars 191 forks source link

[Stroustrup] Comment above the record bracket beaks formatting when `MultilineBracketStyle` is `Stroustrup` #2871

Closed xperiandri closed 1 year ago

xperiandri commented 1 year ago

Issue created from fantomas-online

Code

type Event =
    // TODO: Add LulaSafe conclusion and scores per assessment
    {
        Metadata: AssessmentMetadata
    }

Result

type Event =
// TODO: Add LulaSafe conclusion and scores per assessment
{
    Metadata: AssessmentMetadata
}

Problem description

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

Extra information

Options

Fantomas v6.1 branch at 1/1/1990

    { config with
                MultilineBracketStyle = stroustrup }

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