Skip to content

Raise the 78-column tidy limit #5274

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

Closed
brson opened this issue Mar 8, 2013 · 8 comments
Closed

Raise the 78-column tidy limit #5274

brson opened this issue Mar 8, 2013 · 8 comments

Comments

@brson
Copy link
Contributor

brson commented Mar 8, 2013

I have been trying to merge a large patch and have hundreds of long lines warnings. Eliminating them is making the code look worse. There are other modules in the code base that have this problem as well. I don't think the limit gives us any significant benefits and recommend raising it to 100 columns.

@youknowone
Copy link
Contributor

+1. There is no modern machine has problem to show 100~120 columns.

@bstrie
Copy link
Contributor

bstrie commented Mar 8, 2013

I like that there's a line length limit, but I do tentatively agree that 78 columns is too few.

My current terminal is 116 characters, for reference. This takes up half my screen.

And let's find out how long you can make a line on Github without scrolling:

123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789
123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.
123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.
123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.
123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.

100 characters looks to be the exact limit (in my font, at least).

@bstrie
Copy link
Contributor

bstrie commented Mar 8, 2013

For more around-the-web polls, Gist shows 104 characters without scrolling:

https://gist.github.com/bstrie/5116988

and Reddit shows 110:

http://www.reddit.com/r/sandbox/comments/19wpoy/testing_characters/c8s0rcx

Your fonts may differ, though I'd be surprised if they differ by much.

@nikomatsakis
Copy link
Contributor

For reference, the Spidermonkey team uses 100. The nice thing about this limit is that by the time it is exceeded, the lines just feel too long. In contrast, I often run up against the 78 character limit but the lines don't feel long at all.

@catamorphism
Copy link
Contributor

I vote for increasing it to 100.

@z0w0
Copy link
Contributor

z0w0 commented Mar 9, 2013

+1 for 100. Still allows leeway for people who are wired to code at 78 columns.

@graydon
Copy link
Contributor

graydon commented Mar 12, 2013

discussed at weekly meeting, consensus (with a couple sad faces) was to raise to 100.

@catamorphism
Copy link
Contributor

Closing, fixed in #5340

bors pushed a commit to rust-lang-ci/rust that referenced this issue May 2, 2020
bors added a commit to rust-lang-ci/rust that referenced this issue May 2, 2020
Lint for `pub(crate)` items that are not crate visible due to the visibility of the module that contains them

changelog: Add `redundant_pub_crate` lint

Closes rust-lang#5274.
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

No branches or pull requests

7 participants