fantomas icon indicating copy to clipboard operation
fantomas copied to clipboard

application should not be multiline

Open nojaf opened this issue 4 years ago • 0 comments

Issue created from fantomas-online

Code

app(meh).[x] <-
    { A = longTypeName
      B = someOtherVariable
      C = ziggyBarX }

Result

app(
    meh
).[x] <-
    { A = longTypeName
      B = someOtherVariable
      C = ziggyBarX }

Problem description

The whole expression is multiline so the app(meh) part is formatted multiline but it in itself isn't required to be so.

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 4.6 branch at 1/1/1990

Default Fantomas configuration

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

nojaf avatar Dec 22 '21 08:12 nojaf