From: Lars Kurth Subject: [xen 4.6 retrospective] [bad] Code style checking takes up too much time Date: Fri, 28 Aug 2015 16:39:29 +0100 Message-ID: Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZVLkc-00072g-9a for xen-devel@lists.xenproject.org; Fri, 28 Aug 2015 15:39:34 +0000 Received: by wicne3 with SMTP id ne3so22884154wic.0 for ; Fri, 28 Aug 2015 08:39:32 -0700 (PDT) List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen devel , Andrew Cooper List-Id: xen-devel@lists.xenproject.org Another one from the developer meeting = Issue / Observation = Code style checking takes up too much time. This affects both reviewers who spend a significant amount commenting on style issues and also makes it harder to for contributors to focus on non-style issues. What I mean by the latter is that the volume of comments that need to be tracked by contributors, makes it harder for them. = Possible Solution / Improvement = Automate code-style checks through a tool, that could be run as a pre-patch review tool. Once we have that, update contribution docs. As far as I recall, Andy Cooper believes that dealing with the 2 different coding styles should not be a huge issue. A good tool could differentiate by directory / file. What may be a bigger issue, is that older code may not fully adhere to coding standards. The open question is then * Whether such a tool should only run on the diff/patch * If not, how we deal with check failures in areas of a file that have not been touched by the contributor