-
Notifications
You must be signed in to change notification settings - Fork 127
Open
Description
What input code did you provide to the formatter?
buf.write((duration.inSeconds % Duration.secondsPerMinute)
.toString()
.padLeft(2, '0'));
What output did the formatter produce?
buf.write(
(duration.inSeconds % Duration.secondsPerMinute).toString().padLeft(
2,
'0',
),
);
What output did you expect or want the formatter to produce?
Describe how you expected the formatter to format the code, ideally by showing what you had in mind as code.
buf.write((duration.inSeconds % Duration.secondsPerMinute)
.toString()
.padLeft(2, '0'));
or maybe
buf.write(
(duration.inSeconds % Duration.secondsPerMinute)
.toString()
.padLeft(2, '0'),
);
or maybe (if it fits)
buf.write(
(duration.inSeconds % Duration.secondsPerMinute).toString().padLeft(2, '0'),
);
Anything else we should know?
I guess maybe the formatter should take into consideration the length of the arguments. If the arguments were longer, I guess the formatter's decision would make more sense, but when it's 2
and '0'
, it looks a bit silly.
Sidenote: I can't find it now, but I think I remember seeing something like:
(
_
) => ...
It was a closure with ignored argument, and the _
was on its own line. I think maybe that's the same issue.
Metadata
Metadata
Assignees
Labels
No labels