Skip to content

Don't break namespaces unnecessarily #2279

@Thorium

Description

@Thorium

Looking at the (silly example) code here:

let generateSillyPwd() =
    System.Web.Security.Membership.GeneratePassword(9, 0)
        .Replace("a","b")
        .Replace("c","d")
        .Replace("e","f")
        .Replace("g","h")

The max-length would allow this code.
Default setting Fantomas still breaks the namespaces, hiding the method call "GeneratePassword" with the intention of post-processing:

let generateSillyPwd() =
    System
        .Web
        .Security
        .Membership
        .GeneratePassword(9, 0)
        .Replace("a", "b")
        .Replace("c", "d")
        .Replace("e", "f")
        .Replace("g", "h")

When I read the code above, my focus is that "oh, this is System: That is important".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions