fsprojects / fantomas

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

Return type should go on next line #3041

Closed nojaf closed 4 months ago

nojaf commented 5 months ago

Issue created from fantomas-online

Code

type FSharpChecker with

    member this.ParseAndCheckDocument
        (
            filePath: string,
            sourceText: string,
            options: FSharpProjectOptions,
            allowStaleResults: bool
        ) : Async<(FSharpParseFileResults * ParsedInput * FSharpCheckFileResults) option> =
        ()

Result

type FSharpChecker with

    member this.ParseAndCheckDocument
        (filePath: string, sourceText: string, options: FSharpProjectOptions, allowStaleResults: bool) : Async<
                                                                                                             (FSharpParseFileResults *
                                                                                                             ParsedInput *
                                                                                                             FSharpCheckFileResults) option
                                                                                                          >
        =
        ()

Problem description

Related to the changes of https://github.com/fsprojects/fantomas/pull/3038. Max line length is not respected here. The return type should go on the next line.

Extra information

Options

Fantomas main branch at 1/1/1990

Default Fantomas configuration

Did you know that you can ignore files when formatting by using a .fantomasignore file? PS: It's unlikely that someone else will solve your specific issue, as it's something that you have a personal stake in.