Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id BBC28431FD0 for ; Sat, 17 Dec 2011 17:37:38 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.3 X-Spam-Level: X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6Dja4nml77XE for ; Sat, 17 Dec 2011 17:37:38 -0800 (PST) Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 0BF0C431FB6 for ; Sat, 17 Dec 2011 17:37:37 -0800 (PST) Received: from zancas.localnet (fctnnbsc36w-156034079193.pppoe-dynamic.High-Speed.nb.bellaliant.net [156.34.79.193]) (authenticated bits=0) by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id pBI1bZss019865 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Sat, 17 Dec 2011 21:37:36 -0400 Received: from bremner by zancas.localnet with local (Exim 4.77) (envelope-from ) id 1Rc5h1-0003aG-8C; Sat, 17 Dec 2011 21:37:35 -0400 From: David Bremner To: Austin Clements Subject: Re: [PATCH] uncrustify.cfg: initial support for notmuch coding style In-Reply-To: <20111217235733.GK19427@mit.edu> References: <1324135695-15487-1-git-send-email-david@tethera.net> <87aa6qdd99.fsf@zancas.localnet> <20111217235733.GK19427@mit.edu> User-Agent: Notmuch/0.10.2+103~gd823dc2 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Sat, 17 Dec 2011 21:37:35 -0400 Message-ID: <877h1ud5i8.fsf@zancas.localnet> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: notmuch@notmuchmail.org X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Dec 2011 01:37:38 -0000 On Sat, 17 Dec 2011 18:57:33 -0500, Austin Clements wrote: > Not knowing anything about uncrustify, would it be possible to set up > a pre-commit hook that at least rejects newly added code that doesn't > fit the style? I think that would be possible. It might take a little slightly fancy scripting since uncrustify just outputs the indented file. Moved code might yield false positives, and we'd probably need to find tune the config a bit for this to be usable. d