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
The formatting is inspired by what Python does with the black formatter. I think it makes the code more readable. (For operator placement, see also here.)
The text was updated successfully, but these errors were encountered:
I would tend to agree, but recognise others may not. It makes diffs better if you add a new condition, its just a new line being added, rather than a new line being added and the ccc line being changed to shift the closing brackets.
The placement of || or && I think should be governed by the --binary-next-line option perhaps, although that negates my comment about which lines change in a diff.
Hi @mvdan, I have a formatting suggestion involving if-blocks.
Instead of doing this:
reformat like this:
The formatting is inspired by what Python does with the black formatter. I think it makes the code more readable. (For operator placement, see also here.)
The text was updated successfully, but these errors were encountered: