You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please describe here fantomas problem you encountered
Code
typeTransferAmount(valueToSend: decimal,balanceAtTheMomentOfSending: decimal)=doif balanceAtTheMomentOfSending < valueToSend then
invalidArg "balanceAtTheMomentOfSending""some very very long error message"if valueToSend <=0m then
invalidArg "valueToSend""Amount has to be above zero"
Result
typeTransferAmount(valueToSend: decimal,balanceAtTheMomentOfSending: decimal)=doif balanceAtTheMomentOfSending < valueToSend then
invalidArg "balanceAtTheMomentOfSending""some very very long error message"if valueToSend <=0m
then invalidArg "valueToSend""Amount has to be above zero"
Expected result
The then keyword should stay in the same line for both if blocks.
Options
Fantomas Next - 4.0.0-alpha-001-1/1/1990
Name
Value
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
0
MaxInfixOperatorExpression
80
MaxRecordWidth
40
MaxArrayOrListWidth
40
MaxLetBindingWidth
0
MultilineBlockBracketsOnSameColumn
true
NewlineBetweenTypeDefinitionAndMembers
false
StrictMode
false
NOTE: I think the non-default MaxLetBindingWidth and MultilineBlockBracketsOnSameColumn
config settings are not related to this bug actually, but I could be wrong.
The text was updated successfully, but these errors were encountered:
Issue created from fantomas-online
Please describe here fantomas problem you encountered
Code
Result
Expected result
The
then
keyword should stay in the same line for bothif
blocks.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
0
MaxInfixOperatorExpression
80
MaxRecordWidth
40
MaxArrayOrListWidth
40
MaxLetBindingWidth
0
MultilineBlockBracketsOnSameColumn
true
NewlineBetweenTypeDefinitionAndMembers
false
StrictMode
false
NOTE: I think the non-default MaxLetBindingWidth and MultilineBlockBracketsOnSameColumn
config settings are not related to this bug actually, but I could be wrong.
The text was updated successfully, but these errors were encountered: