Re: [PATCH] uncrustify.cfg: initial support for notmuch coding style

Subject: Re: [PATCH] uncrustify.cfg: initial support for notmuch coding style

Date: Sat, 17 Dec 2011 21:37:35 -0400

To: Austin Clements

Cc: notmuch@notmuchmail.org

From: David Bremner


On Sat, 17 Dec 2011 18:57:33 -0500, Austin Clements <amdragon@MIT.EDU> 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

Thread: