Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upLine-length-limit bikeshed #6041
Comments
|
I limited to 160 because that was about the smallest number that didn't require me fixing a million cases; I'd definitely like to reduce that to 100 or even 80. |
|
I'm a little worried about trying to get to even 100 with Rust. There's a lot of rightward drift from nested I'd probably want to sit down with the 1620 lines and make sure that truncating them is just a matter of indenting function calls or parameter lists across multiple lines and not changing the expression nesting. |
|
'bikeshed' is my middle name! Right now, it rejects more than 150 characters on a line. Even though people here are talking about 80 or 100 characters, for the sake of sanity, I am going to reduce that to 120 and see how it goes. |
Part of servo#6041
|
Just opened #6174 reducing line length from 150 to 120 characters |
Part of #6041 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6174) <!-- Reviewable:end -->
|
The long lines that infuriate me the most are the patterns for EventTargetTypeId. Maybe we could also generate one value per leaf type? For example, generate a const TextTypeId equal to |
…s (from frewsxcv:cleanup-long-lines); r=SimonSapin Part of servo/servo#6041 Source-Repo: https://github.com/servo/servo Source-Revision: 542519ebfd073662bc9421ac5fa0aa01ebc0d6fe
…s (from frewsxcv:cleanup-long-lines); r=SimonSapin Part of servo/servo#6041 Source-Repo: https://github.com/servo/servo Source-Revision: 542519ebfd073662bc9421ac5fa0aa01ebc0d6fe UltraBlame original commit: e2687fb0ec2e97a0e9e64c0591a07e3d3bca922c
…s (from frewsxcv:cleanup-long-lines); r=SimonSapin Part of servo/servo#6041 Source-Repo: https://github.com/servo/servo Source-Revision: 542519ebfd073662bc9421ac5fa0aa01ebc0d6fe UltraBlame original commit: e2687fb0ec2e97a0e9e64c0591a07e3d3bca922c
…s (from frewsxcv:cleanup-long-lines); r=SimonSapin Part of servo/servo#6041 Source-Repo: https://github.com/servo/servo Source-Revision: 542519ebfd073662bc9421ac5fa0aa01ebc0d6fe UltraBlame original commit: e2687fb0ec2e97a0e9e64c0591a07e3d3bca922c
from IRC:
CC @mbrubeck @pcwalton @jdm @Ms2ger -- hopefully I didn't miss anyone...