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

AbstractSlot with line comment is consider multi line #757

Closed
nojaf opened this issue Apr 16, 2020 · 0 comments · Fixed by #760
Closed

AbstractSlot with line comment is consider multi line #757

nojaf opened this issue Apr 16, 2020 · 0 comments · Fixed by #760
Assignees

Comments

@nojaf
Copy link
Contributor

nojaf commented Apr 16, 2020

Issue created from fantomas-online

A newline is introduced because Fantomas consider the AbstractSlot to be multiline because of the comment (Trivia).

Code

[<AllowNullLiteral>]
type Graph2dOptions =
    abstract autoResize: bool option with get, set
    abstract hiddenDates: obj option with get, set
    abstract legend: Graph2dLegendOption option with get, set
    abstract locale: string option with get, set
    abstract locales: obj option with get, set
    // abstract moment: MomentConstructor option with get, set
    abstract max: DateType option with get, set
    abstract maxHeight: HeightWidthType option with get, set
    abstract zoomMin: float option with get, set
    abstract zIndex: float option with get, set

Result

[<AllowNullLiteral>]
type Graph2dOptions =
    abstract autoResize: bool option with get, set
    abstract hiddenDates: obj option with get, set
    abstract legend: Graph2dLegendOption option with get, set
    abstract locale: string option with get, set
    abstract locales: obj option with get, set
    // abstract moment: MomentConstructor option with get, set
    abstract max: DateType option with get, set

    abstract maxHeight: HeightWidthType option with get, set
    abstract zoomMin: float option with get, set
    abstract zIndex: float option with get, set

Options

Fantomas Next - 4.0.0-alpha-001-4/16/2020

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
StrictMode false
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

Successfully merging a pull request may close this issue.

1 participant