fantomas
fantomas copied to clipboard
Commented line inside of record should be indented at the same level as the fields
Issue created from fantomas-online
Code
type UserInfo = {
/// A unique identifier assigned to this user.
UserId: UserId.T
AcsId: AcsId.T
// Roles: Role list
// NetworkStatus: UserStatus
// ancillary info
// Descr: UserDetails
}
Result
type UserInfo = {
/// A unique identifier assigned to this user.
UserId: UserId.T
AcsId: AcsId.T
// Roles: Role list
// NetworkStatus: UserStatus
// ancillary info
// Descr: UserDetails
}
Problem description
Commented line inside of record should be indented at the same level as the fields
Perhaps related to https://github.com/fsprojects/fantomas/issues/1233
Extra information
- [ ] The formatted result breaks my code.
- [ ] The formatted result gives compiler warnings.
- [ ] I or my company would be willing to help fix this.
Options
Fantomas master branch at 2022-09-07T06:05:21Z - b0916a411b7e5314d84475c5cd4be45c85ea5359
{ config with
ExperimentalStroustrupStyle = true }
Did you know that you can ignore files when formatting from fantomas-tool or the FAKE targets by using a .fantomasignore file?
A bit closer related to https://github.com/fsprojects/fantomas/issues/1570. But overall, yes this is the same problem.
Feel free to help out at https://github.com/fsprojects/fantomas/pull/2455.