fsprojects / fantomas

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

MaxDotGetExpressionWidth seems to have no effect on this code #2861

Open cmeeren opened 1 year ago

cmeeren commented 1 year ago

Issue created from fantomas-online

Code

let emailMessage = 
    define
        .Attribute
        .Nullable
        .ParsedRes(ExportEmailMessage.value, ExportEmailMessage.create)

Result

let emailMessage =
    define.Attribute.Nullable.ParsedRes(ExportEmailMessage.value, ExportEmailMessage.create)

Problem description

Since MaxDotGetExpressionWidth is 0, I would expect the code to look like the top one (or at the very least place ParsedRes(...) on a separate line).

Extra information

Options

Fantomas main branch at 1/1/1990

    { config with
                MaxDotGetExpressionWidth = 0 }

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