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
I propose we ... add a feature that formats a statement into a line including comments that don't exceed the maximum width.
The existing way of Fantomas deals with this problem is ... When I format the code, the line of code including the comments sometimes exceeds the maximum width, but the line of code without comments doesn't exceed the maximum width.
Pros and Cons
The advantages of making this adjustment to Fantomas are ... Easier to read
The disadvantages of making this adjustment to Fantomas are ... None
Examples
Please provide multiple examples (before and after scenarios) and explain what rules did apply to achieve the outcome.
Input:
letcomplex_function first second third fourth last = first + second + third + fourth + last // complex function
Actual Output:
letcomplex_function first second third fourth last = first + second + third + fourth + last // complex function
Expected Output:
letcomplex_function first second third fourth last =
first + second + third + fourth + last // complex function
Input:
letvery_complex_function first second third fourth fifth last = first + second + third + fourth + fifth + last // very complex function
Actual Output:
letvery_complex_function first second third fourth fifth last =
first + second + third + fourth + fifth + last // very complex function
Expected Output:
letvery_complex_function first second third fourth fifth last =
first + second + third + fourth + fifth + last // very complex function
Hello, thank you for your interest.
At first glance, I don't think this is deemed problematic by the current userbase.
(As it was never brought up until now)
Could you provide some more examples where you are bumping into this use-case?
Please use the online tool where possible.
These examples are repetitive, and they don't broaden the scope of your expectations. The technical details surrounding this situation are quite unclear, particularly regarding the predefined rules and what changes would be necessary to achieve it. How significant would the impact be?
The above code is formatted based on the line length of the code excluding comments, instead of the line length of the code including comments. So the above code is formatted and the line length of code excluding comments always doesn't exceed the maximum line width, sometimes the line length of code can exceed the maximum line width.
I propose we ... add a feature that formats a statement into a line including comments that don't exceed the maximum width.
The existing way of Fantomas deals with this problem is ... When I format the code, the line of code including the comments sometimes exceeds the maximum width, but the line of code without comments doesn't exceed the maximum width.
Pros and Cons
The advantages of making this adjustment to Fantomas are ... Easier to read
The disadvantages of making this adjustment to Fantomas are ... None
Examples
Please provide multiple examples (before and after scenarios) and explain what rules did apply to achieve the outcome.
Input:
Actual Output:
Expected Output:
Input:
Actual Output:
Expected Output:
Affidavit (please submit!)
Please tick this by placing a cross in the box:
Please tick all that apply:
The text was updated successfully, but these errors were encountered: