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

Long function signature should align with equal sign #883

Closed
nojaf opened this issue Jun 3, 2020 · 0 comments · Fixed by #897
Closed

Long function signature should align with equal sign #883

nojaf opened this issue Jun 3, 2020 · 0 comments · Fixed by #897
Assignees

Comments

@nojaf
Copy link
Contributor

nojaf commented Jun 3, 2020

Issue created from fantomas-online

Function parameters are indented too far in regards to the = sign.
If the indentation is four spaces you wouldn't notice this because it all align after the let .
But I think it would be better to go with one indentation instead of aligning to the let .

Code

// module InMemoryReadmodels =

let readModel (updateState : 'State -> EventEnvelope<'Event> list -> 'State) (initState : 'State) : ReadModel<'Event, 'State> =
    ()

Result

// module InMemoryReadmodels =

let readModel
    (updateState : 'State -> EventEnvelope<'Event> list -> 'State)
    (initState : 'State)
    : ReadModel<'Event, 'State>
  =
  ()

Options

Fantomas Master at 06/02/2020 18:39:46 - eee0f32

Name Value
IndentSpaceNum 2
PageWidth 120
SemicolonAtEndOfLine false
SpaceBeforeParameter true
SpaceBeforeLowercaseInvocation true
SpaceBeforeUppercaseInvocation false
SpaceBeforeClassConstructor false
SpaceBeforeMember false
SpaceBeforeColon true
SpaceAfterComma true
SpaceBeforeSemicolon false
SpaceAfterSemicolon true
IndentOnTryWith false
SpaceAroundDelimiter true
MaxIfThenElseShortWidth 40
MaxInfixOperatorExpression 50
MaxRecordWidth 40
MaxArrayOrListWidth 40
MaxLetBindingWidth 40
MultilineBlockBracketsOnSameColumn false
NewlineBetweenTypeDefinitionAndMembers false
KeepIfThenInSameLine false
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