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
// Original input:letx=ifnot(f aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa)then1else2// Formatted output of the above, in for a second format:letx=if(not(
f aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
))then1else2
Result
// Original input:letx=if(not(
f aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
))then1else2// Formatted output of the above, in for a second format:letx=if(not(
f aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
))then1else2
Problem description
Formatting the input results in:
FS0058: Possible incorrect indentation, this token is offside of context ...
The issue is not only the compiler warning, but also:
Idempotency. Running Fantomas twice causes further changes.
Issue created from fantomas-online
Code
Result
Problem description
Formatting the input results in:
The issue is not only the compiler warning, but also:
if
condition?Workaround: Extract the condition into a
let
.Extracted from #1342
Extra information
Options
Fantomas Master at 01/05/2021 21:00:18 - d5f4d9f
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?
The text was updated successfully, but these errors were encountered: