-
Notifications
You must be signed in to change notification settings - Fork 717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change effective dart rule about line length #6404
Conversation
Visit the preview URL for this PR (updated for commit 0b1f876): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
src/content/effective-dart/style.md
Outdated
|
||
### AVOID lines longer than 80 characters | ||
<a id="avoid-lines-longer-than-80-characters"></a> | ||
### PREFER lines 80 characters or less |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grammar nit: "or fewer". :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Phew, good thing I'm not a technical writer or something 😅
src/content/effective-dart/style.md
Outdated
@@ -469,7 +469,8 @@ compact. The main offender is usually `VeryLongCamelCaseClassNames`. Ask | |||
yourself, "Does each word in that type name tell me something critical or | |||
prevent a name collision?" If not, consider omitting it. | |||
|
|||
Note that `dart format` does 99% of this for you, but the last 1% is you. | |||
Note that `dart format` defaults to 80 characters or less, though you can |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great update, thanks @MaryaBelanger! :D
Do apply Bob's "or fewer" fix though :)
Fixes #6142