Skip to content

Indentation warnings in record expression #2529

@SteveGilham

Description

@SteveGilham

Not a consequence of a non-standard indent-size after all --

Issue created from fantomas-online

Code

        DotNet.test
            (fun p ->
                (({ p.WithCommon(withWorkingDirectoryVM "_Issue23") with
                                                                         Configuration = DotNet.BuildConfiguration.Debug
                                                                         NoBuild = false })
                     .WithAltCoverOptions
                     pp0
                     cc0
                     ForceTrue)
                    .WithAltCoverImportModule()
                    .WithAltCoverGetVersion()
                |> testWithCLIArguments)
            ""

Result

DotNet.test
    (fun p ->
        (({ p.WithCommon(withWorkingDirectoryVM "_Issue23") with
            Configuration = DotNet.BuildConfiguration.Debug
            NoBuild = false })
             .WithAltCoverOptions
             pp0
             cc0
             ForceTrue)
            .WithAltCoverImportModule()
            .WithAltCoverGetVersion()
        |> testWithCLIArguments)
    ""

Problem description

(4,12) (4, 25)Warning
Possible incorrect indentation: this token is offside of context started at position (3:13). Try indenting this token further or using standard formatting conventions.

(4,12) (4, 25)Warning
Possible incorrect indentation: this token is offside of context started at position (3:13). Try indenting this token further or using standard formatting conventions.

(5,12) (5, 19)Warning
Possible incorrect indentation: this token is offside of context started at position (3:13). Try indenting this token further or using standard formatting conventions.

(5,12) (5, 19)Warning
Possible incorrect indentation: this token is offside of context started at position (3:13). Try indenting this token further or using standard formatting conventions.

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.

Options

Fantomas master branch at 2022-09-20T21:08:34Z - 11c2a86

Default Fantomas configuration

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions