fantomas
fantomas copied to clipboard
Long pattern with `&` is not respecting max line length.
Issue created from fantomas-online
Code
let v,x =
match n with
| Voluptatem voluptatem & Praesentium praesentium & Molestiae molestiae & Repudiandae repudiandae & Exercitationem exercitationem & Assumenda assumenda ->
libero, []
| _ -> saepe, delectus
Result
let v, x =
match n with
| Voluptatem voluptatem & Praesentium praesentium & Molestiae molestiae & Repudiandae repudiandae & Exercitationem exercitationem & Assumenda assumenda ->
libero, []
| _ -> saepe, delectus
Problem description
To respect the max line length, we could format it like
let v,x =
match n with
| Voluptatem voluptatem
& Praesentium praesentium
& Molestiae molestiae
& Repudiandae repudiandae
& Exercitationem exercitationem
& Assumenda assumenda ->
libero, []
| _ -> saepe, delectus
Extra information
- [ ] The formatted result breaks by code.
- [ ] The formatted result gives compiler warnings.
- [ ] I or my company would be willing to help fix this.
Options
Fantomas Master at 06/12/2021 10:31:17 - 8f71594df9f6f30871e26ccf0aa5da1ac7be325c
Default Fantomas configuration
Did you know that you can ignore files when formatting from fantomas-tool or the FAKE targets by using a .fantomasignore file?