Closed roboz0r closed 1 year ago
Hello @roboz0r, thanks for opening this issue. We handle this correctly for types, but as you see, not for modules. Maybe this gets you going in the right direction to fix this yourself. Most likely we would need to apply the same trick here as for types.
Are you interested in submitting a PR for this?
Issue created from fantomas-online
Code
Result
Problem description
As can be seen above, the correct indentation isn't maintained for the accessibility modifier or module name when surrounded by compiler conditionals. The below alternative is a successful workaround:
Extra information
Options
Fantomas main branch at 1/1/1990 <- incorrect date is shown on the online editor
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?