-
-
Notifications
You must be signed in to change notification settings - Fork 200
Closed
Labels
Description
Issue created from fantomas-online
Code
let array = [|
someItem
|]
let array2 = [|
someItem
// comment
|]
Result
let array =
[|
someItem
|]
let array2 =
[|
someItem
// comment
|]
Problem description
Placing an empty line or comment on the last line of an arrow, list or similar breaks Stroustrup formatting
Extra information
Might be related to one of the following:
- Newline inconsistency in object expression #2990
- Regression: Stroustrup bracket style in anonymous record type parameter is not respected #3069
- The formatted result breaks my code.
- The formatted result gives compiler warnings.
- I or my company would be willing to help fix this.
- I would like a release if this problem is solved.
Options
Fantomas main branch at 15/4/2024
{ config with
MultilineBracketStyle = stroustrup }
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.