Skip to content
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

Merged
merged 3 commits into from
Feb 11, 2025
Merged

Change effective dart rule about line length #6404

merged 3 commits into from
Feb 11, 2025

Conversation

MaryaBelanger
Copy link
Contributor

Fixes #6142

@dart-github-bot
Copy link
Collaborator

dart-github-bot commented Feb 10, 2025

Visit the preview URL for this PR (updated for commit 0b1f876):

https://dart-dev--pr6404-80-char-awx36vi4.web.app

Copy link
Member

@munificent munificent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!


### AVOID lines longer than 80 characters
<a id="avoid-lines-longer-than-80-characters"></a>
### PREFER lines 80 characters or less
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grammar nit: "or fewer". :)

Copy link
Contributor Author

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 😅

@@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

Copy link
Member

@parlough parlough left a 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 :)

@MaryaBelanger MaryaBelanger merged commit fd9665b into main Feb 11, 2025
10 checks passed
@MaryaBelanger MaryaBelanger deleted the 80-char branch February 11, 2025 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prefer lines 80 characters or less
4 participants