-
-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Idempotency problem when using lower MaxLineLength than default and fantomas needs to split lines #2176
Comments
The additional introduced parentheses are probably part of a last resort measure to produce valid code. |
…antomas needs to split lines Fixes fsprojects#2176
AFAIU, idempotency problems are never marked as stylistic. Please note that this is not just superflous addition of parentheses: if you run fantomas 3 times, 3 pairs of parentheses are added. |
…antomas needs to split lines Fixes fsprojects#2176
…antomas needs to split lines Fixes fsprojects#2176
Issue created from fantomas-online
Formatted code
Reformatted code
Expected result
Problem description
Fantomas was not able to produce the same code after reformatting the result (note, the bug doesn't happen if MaxLineLength=120), adding unnecessary parentheses.
Extra information
Options
Fantomas master branch at 2022-03-29T09:12:14Z - 8f2ab14
Did you know that you can ignore files when formatting from fantomas-tool or the FAKE targets by using a .fantomasignore file?
The text was updated successfully, but these errors were encountered: