-
-
Notifications
You must be signed in to change notification settings - Fork 190
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
Explicit constructor parameters which exceed PageWidth cause indentation error #849
Comments
Fantomas 3.3 formats this as: type SomeType =
new(looooooooooooong1: string, looooooooooooong2: string,
looooooooooooong3: string) = { } so I would go with your proposal. Side question: I'm not familiar with the |
I'm not very familiar with it either, because it's very related to the OOP-parts of F# (which I try to avoid; but it's kinda unavoidable when you're dealing with exceptions and the need to derive from |
@knocte that PR only fixed the indentation issue. I would like to see: type SomeType =
new(
looooooooooooong1: string,
looooooooooooong2: string,
looooooooooooong3: string) = { } change to type SomeType =
new(looooooooooooong1: string,
looooooooooooong2: string,
looooooooooooong3: string) = { } |
I believe this as a whole is fixed by now. (See online tool). |
Issue created from fantomas-online
In the result below
SomeOtherType
has one indentation too much which can cause indentation errors further down in the code. Might be a similar bug as in #844 .Code
Result
Options
Fantomas Next - 4.0.0-alpha-001-1/1/1990
IndentSpaceNum
4
PageWidth
80
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
false
NewlineBetweenTypeDefinitionAndMembers
false
KeepIfThenInSameLine
false
StrictMode
false
The text was updated successfully, but these errors were encountered: