You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to format an array with an empty line inside, Fantomas tries to indent it as if there were values inside. This, for some reason, is not allowed and breaks the code.
If there is no empty line inside, it properly removes the newline and formats it validly as such:
letmyArray=[||]
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.
I would like a release if this problem is solved.
Options
Fantomas main branch at 03/07/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.
The text was updated successfully, but these errors were encountered:
Hello, thank you for reporting this issue.
This guide could be useful to investigate the problem.
Are you interested in sending a contribution for this?
Issue created from fantomas-online
Code
Result
Problem description
When trying to format an array with an empty line inside, Fantomas tries to indent it as if there were values inside. This, for some reason, is not allowed and breaks the code.
If there is no empty line inside, it properly removes the newline and formats it validly as such:
Extra information
Options
Fantomas main branch at 03/07/2024
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.
The text was updated successfully, but these errors were encountered: