Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753021Ab0ATKCK (ORCPT ); Wed, 20 Jan 2010 05:02:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751986Ab0ATKCH (ORCPT ); Wed, 20 Jan 2010 05:02:07 -0500 Received: from cassiel.sirena.org.uk ([80.68.93.111]:36840 "EHLO cassiel.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750943Ab0ATKCG (ORCPT ); Wed, 20 Jan 2010 05:02:06 -0500 Date: Wed, 20 Jan 2010 10:01:55 +0000 From: Mark Brown To: Ben Dooks Cc: linux-arm-kernel@lists.infradead.org, Linux Samsung SoC , Linux Kernel Subject: Re: git pre-commit hook running checkpatch.pl Message-ID: <20100120100155.GA851@sirena.org.uk> References: <20100120020202.GE26562@trinity.fluff.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100120020202.GE26562@trinity.fluff.org> X-Cookie: Allow 6 to 8 weeks for delivery. User-Agent: Mutt/1.5.18 (2008-05-17) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: broonie@sirena.org.uk X-SA-Exim-Scanned: No (on cassiel.sirena.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1103 Lines: 22 On Wed, Jan 20, 2010 at 02:02:02AM +0000, Ben Dooks wrote: > I've written a git pre-commit[1] hook which stops any commits happening if > checkpatch.pl reports problems with the patch. Any comments? > [1] http://www.fluff.org/ben/linux/githooks/pre-commit Checkpatch does sometimes generate the occasional false positive which can be annoying when they trigger. It can also be a problem when doing bugfixes IME - if an existing file has lots of checkpatch issues then a fix which maintains the same coding style as the surrounding code can trigger checkpatch issues which would if fixed make the code not fit in with the rest of the file. Obviously it'd be desirable to fix the file but that's a bit unreasonable for people submitting bug fixes, especially when pushing fixes to Linus and stable. That said, monitoring for checkpatch issues is useful. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/