Received: from eggs.gnu.org ([2001:4830:134:3::10]:39130) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZYzrX-00069R-F4 for qemu-devel@nongnu.org; Mon, 07 Sep 2015 13:05:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZYzrS-0005OD-D0 for qemu-devel@nongnu.org; Mon, 07 Sep 2015 13:05:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47209) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZYzrR-0005O8-Vk for qemu-devel@nongnu.org; Mon, 07 Sep 2015 13:05:42 -0400 From: Markus Armbruster References: <1441619584-17992-1-git-send-email-pbonzini@redhat.com> <1441619584-17992-3-git-send-email-pbonzini@redhat.com> <55ED8EA0.6040400@redhat.com> <55ED9DA9.80208@redhat.com> <55EDA144.8000505@redhat.com> <87lhci5k3q.fsf@blackfin.pond.sub.org> <55EDB601.7080903@redhat.com> Date: Mon, 07 Sep 2015 19:05:38 +0200 In-Reply-To: <55EDB601.7080903@redhat.com> (Paolo Bonzini's message of "Mon, 7 Sep 2015 18:06:25 +0200") Message-ID: <87r3mayxb1.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 2/4] CODING_STYLE, checkpatch: update line length rules List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Thomas Huth , qemu-devel@nongnu.org, Andreas Faerber , Eduardo Habkost Paolo Bonzini writes: > On 07/09/2015 17:23, Markus Armbruster wrote: >> > Apart from copy-n-pasting, there is also the problem that you can run >> > "checkpatch.pl -f" on a whole file ... it would also be ugly to suddenly >> > have (much) more warnings here. >> >> Feature. If you run checkpatch on a whole file, you obviously do it to >> find its ugly spots. Lines longer than 76 characters qualify. > > Based on the statistics, half of QEMU's files has at least one 76-79 > character line. The noise from checkpatch.pl -f is actually a worse > thing than the cut-and-paste, but that's something that can be fixed in > other ways (e.g. different strictness for checkpatch.pl vs. > checkpatch.pl -f). Yup. > That said, and even though Thomas obviously hasn't read the previous > discussion, :) I do believe that 76 characters is too strict a limit. It's not a strict limit, it's a warning. The strict limit is 90. > 76 would be great (two levels of email quoting are what you get 99% of > the time), and 78 would be nice, but I believe 79 provides the biggest > bang for the buck. 78 gives one level of quoting, and two-way diffs.