Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jun 2021 16:54:28 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: a3238e92d704 - main - style: Relax 80 column rule
Message-ID:  <202106111654.15BGsS1u035591@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

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

commit a3238e92d704e84e70cc696a1cd2219fa4e4aa9e
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2021-06-11 16:37:36 +0000
Commit:     Warner Losh <imp@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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106111654.15BGsS1u035591>