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

Lines should be wrapped around a specific number of words #24

Open
mainrs opened this issue Jul 18, 2020 · 2 comments
Open

Lines should be wrapped around a specific number of words #24

mainrs opened this issue Jul 18, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@mainrs
Copy link
Owner

mainrs commented Jul 18, 2020

I suggest a 72/80 format or 50/80, where the first number denotes the length of the first line, e.g. the type, scope and short message of the commit. The second one is the character constraint for all other lines.

50/80 is the "classic" format that the Linux kernel tries to stick to. 72/80 is the one that goes well with GitHub, as GitHub truncates the first line using three dots (...) if it is longer than 72.

Nice to have: Configurable

@mainrs mainrs added the enhancement New feature or request label Jul 18, 2020
@mainrs mainrs pinned this issue Jul 24, 2020
@mainrs mainrs unpinned this issue Jul 25, 2020
@mainrs
Copy link
Owner Author

mainrs commented Mar 21, 2021

textwrap crate.

@mainrs mainrs self-assigned this Mar 21, 2021
@mainrs
Copy link
Owner Author

mainrs commented Mar 21, 2021

On backlog, thinking about how to cleanly implement this. I try to reduce the number of total allocations alongside it.

@mainrs mainrs added the good first issue Good for newcomers label Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant