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
Note that the line TypeParameterStructure extends SharedTypeParameterStructure<TypeStructure>, is longer than 80 characters. The formatter insists on placing this text all on the same line, causing failures in the lines_longer_than_80_chars lint.
That's the kind of bug that I'd be tempted to just turn a blind eye to. 😅
Half joking. This bug is the kind of thing that indicates, maybe the code isn't readable longer than 80 chars, and maybe it isn't readable wrapped into multiple lines; maybe there is a naming solution, or a typedef solution, that results in more readable code.
The tall style was already doing a better job on #1568 than the old
short style does. (I don't know why it leaves an overly long line there.
It seems like a bug but perhaps a nasty subtle one in the solver.)
But it still didn't allow splitting before `extends` in a bound which
could leave long lines in cases where the type parameter and bound name
are both quite long. Rare, but we may as well do a better job.
So this introduces a new piece that allows splitting before `extends`
if needed.
Fix#1568.
https://dart-review.googlesource.com/c/sdk/+/386736 introduces several declarations that look similar to this:
Note that the line
TypeParameterStructure extends SharedTypeParameterStructure<TypeStructure>,
is longer than 80 characters. The formatter insists on placing this text all on the same line, causing failures in thelines_longer_than_80_chars
lint.To see more examples, search for the text
// ignore: lines_longer_than_80_chars
in https://dart-review.googlesource.com/c/sdk/+/386736.The text was updated successfully, but these errors were encountered: