fantomas
fantomas copied to clipboard
Weird split of DotGet TypeApp
Issue created from fantomas-online
Code
let v = attr.Method.DeclaringType.TypeSpec.Name = typeof<TypeProviderEditorHideMethodsAttribute>.FullName
Result
let v =
attr.Method.DeclaringType.TypeSpec.Name = typeof<TypeProviderEditorHideMethodsAttribute>
.FullName
Problem description
.Fullname is split rather weirdly. It is split in the first place due to the MaxDotGetExpressionWidth setting.
Perhaps in the next major version, we can reconsider the usefulness of this setting. MaxLineLenght might also do the trick here.
Regardless of the setting, the question remains on how this should be split. Something like
let v =
attr.Method.DeclaringType.TypeSpec.Name = typeof<TypeProviderEditorHideMethodsAttribute>
.FullName
could also be considered as a vanity alignment, as the offset is dictated by the expression length.
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 08/11/2021 06:58:03 - fd67416baa1e7ebf63d20e064041d1e0bce61881
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?