fantomas icon indicating copy to clipboard operation
fantomas copied to clipboard

Misaligned comment in MultiLineBlockBracket

Open Smaug123 opened this issue 4 years ago • 0 comments

Issue created from fantomas-online

Code

module I =
    let f =
        [
            ""
            // hi
        ]

Result

module I =
    let f =
        [
            ""
        // hi
        ]

Problem description

This is incredibly minor but I think the unindentation of the comment is aesthetically a bit sad. It would be more consistent for that comment to be indented one scope.

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/09/2021 13:45:10 - f10b822434c5223dbf01c1d94ab734cb8a467c1f

    { config with
                SpaceBeforeUppercaseInvocation = true
                SpaceBeforeClassConstructor = true
                SpaceBeforeMember = true
                SpaceBeforeColon = true
                SpaceBeforeSemicolon = true
                MultilineBlockBracketsOnSameColumn = true
                AlignFunctionSignatureToIndentation = true
                AlternativeLongMemberDefinitions = true
                MultiLineLambdaClosingNewline = true
                KeepIndentInBranch = true }

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

Smaug123 avatar May 10 '21 15:05 Smaug123