git: a3238e92d704 - main - style: Relax 80 column rule

Warner Losh imp at FreeBSD.org
Fri Jun 11 16:54:28 UTC 2021


The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=a3238e92d704e84e70cc696a1cd2219fa4e4aa9e

commit a3238e92d704e84e70cc696a1cd2219fa4e4aa9e
Author:     Warner Losh <imp at FreeBSD.org>
AuthorDate: 2021-06-11 16:37:36 +0000
Commit:     Warner Losh <imp at FreeBSD.org>
CommitDate: 2021-06-11 16:54:06 +0000

    style: Relax 80 column rule
    
    Note that the 80 column rule has been relaxed for some time when things
    are clearer when a little longer. Add in that things that people grep
    for, such as error messages, shouldn't be broken up which is the most
    common reason people exceed 80 columns intentionally.
    
    Reviewed by:            jhb, domagoj.stolfa at gmail.com
    Sponsored by:           Netflix
    Differential Revision:  https://reviews.freebsd.org/D30255
---
 share/man/man9/style.9 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/share/man/man9/style.9 b/share/man/man9/style.9
index 9744b1c11a45..77c8dbe8e7d7 100644
--- a/share/man/man9/style.9
+++ b/share/man/man9/style.9
@@ -36,6 +36,10 @@ This file specifies the preferred style for kernel source files in the
 .Fx
 source tree.
 It is also a guide for the preferred userland code style.
+The preferred line width is 80 characters, but some exceptions are
+made when a slightly longer line is clearer or easier to read.
+Anything that is frequently grepped for, such as diagnostic, error or panic
+messages, should not be broken up over multiple lines despite this rule.
 Many of the style rules are implicit in the examples.
 Be careful to check the examples before assuming that
 .Nm


More information about the dev-commits-src-all mailing list