Issue created from fantomas-online
Code and expected output
workstations
|> Seq.sumBy
_.GetWeeklyValueWithoutAccessCheck(
year,
week,
CapacityAggregateValueType.CostPrice,
category
)
Result
workstations
|> Seq.sumBy
_.GetWeeklyValueWithoutAccessCheck(year,
week,
CapacityAggregateValueType.CostPrice,
category)
Problem description
This regression appeared in 6.3.5. (Fantomas 6.3.4 correctly formats it as the code at the top.)
Note that this does not happen with a normal (non-shorthand) lambda. Fantomas correctly formats this:
workstations
|> Seq.sumBy (fun x ->
x.GetWeeklyValueWithoutAccessCheck(
year,
week,
CapacityAggregateValueType.CostPrice,
category
))
Extra information
Options
Fantomas main branch at 1/1/1990
{ config with
MaxLineLength = 50 }
Did you know that you can ignore files when formatting by using a .fantomasignore file?
PS: It's unlikely that someone else will solve your specific issue, as it's something that you have a personal stake in.