Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultilineBlockBracketsOnSameColumn=true not working on records with short names #823

Closed
knocte opened this issue May 11, 2020 · 1 comment

Comments

@knocte
Copy link
Contributor

knocte commented May 11, 2020

Issue created from fantomas-online

Please describe here fantomas problem you encountered

Code

type ShortName =
    {
        Bar1: int
        Baz1: string
    }

type SomeLongNameRecord =
    {
        LongNameMember1: int
        LongNameMember2: string
    }

Result

type ShortName = { Bar1: int; Baz1: string }

type SomeLongNameRecord =
    {
        LongNameMember1: int
        LongNameMember2: string
    }

Expected Result

type ShortName =
    {
        Bar1: int
        Baz1: string
    }

type SomeLongNameRecord =
    {
        LongNameMember1: int
        LongNameMember2: string
    }

Options

Fantomas Next - 4.0.0-alpha-001-1/1/1990

Name Value
IndentSpaceNum 4
PageWidth 120
SemicolonAtEndOfLine false
SpaceBeforeParameter true
SpaceBeforeLowercaseInvocation true
SpaceBeforeUppercaseInvocation false
SpaceBeforeClassConstructor false
SpaceBeforeMember false
SpaceBeforeColon false
SpaceAfterComma true
SpaceBeforeSemicolon false
SpaceAfterSemicolon true
IndentOnTryWith false
SpaceAroundDelimiter true
MaxIfThenElseShortWidth 40
MaxInfixOperatorExpression 50
MaxRecordWidth 40
MaxArrayOrListWidth 40
MaxLetBindingWidth 40
MultilineBlockBracketsOnSameColumn true
NewlineBetweenTypeDefinitionAndMembers false
StrictMode false
@knocte
Copy link
Contributor Author

knocte commented May 11, 2020

Oh I've actually just noticed about this config setting called "MaxRecordWidth", d'oh!

So I just added it to my docs PR so that others don't make this mistake: #822

@knocte knocte closed this as completed May 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant