Gentoo Archives: gentoo-portage-dev

From: Alexandru Elisei <alexandru.elisei@×××××.com>
To: gentoo-portage-dev@l.g.o, Alexandru Elisei <alexandru.elisei@×××××.com>
Subject: [gentoo-portage-dev] [PROPOSAL] Don't split user visible messages across multiple lines
Date: Mon, 27 Feb 2017 18:33:30
Message-Id: CAB-4s4myJ9vZUz_iNowtLU1mA4oaeC1mNPNr6Owtn=-2ot1jDw@mail.gmail.com
1 I was working on emerge --sync and my test repo configuration
2 generated several warning messages. Finding the exact location where
3 the warnings was generated was surprisingly difficult because the
4 message string was split across three lines due to the 80 character
5 line limit and I had to grep for different patterns until I found one
6 that matched part of a line.
7
8 I propose that messages that are visible to the user never be split
9 across multiple lines. This is also the coding style convention used
10 by the linux kernel:
11 https://www.kernel.org/doc/html/latest/process/coding-style.html#breaking-long-lines-and-strings
12
13 If accepted, this could go in the DEVELOPING file.

Replies