Coding conventions

Brad Grupczynski brad.gnucash at gmail.com
Fri Apr 22 17:37:14 EDT 2011


On Apr 22, 2011, at 4:11 PM, John Ralls wrote:

> 
> On Apr 22, 2011, at 1:37 PM, Brad Grupczynski wrote:
> 
>> I can't find coding conventions. I see a mix of styles in the code. I'd like to standardize the modules I work on. e.g. 4 spaces instead of tabs, etc.
>> 
>> Can someone point me to them if they exist?
> 
> They don't, at least formally. If you haven't found http://wiki.gnucash.org/wiki/Development, you should read it. There's a link to http://lists.gnucash.org/pipermail/gnucash-devel/2009-August/026121.html, where Christian posted proposed standards. He periodically runs a program called astyle (with the arguments --indent=spaces=4 --brackets=break --pad-oper --pad-header --suffix=none) on the whole tree to enforce it.
> 
> Oh, and pertinent to your last, I see that there's an Eclipse page: http://wiki.gnucash.org/wiki/Eclipse
> 
> Regards,
> John Ralls
> 

Thanks. Missed that link. That's the style I like anyway. I was looking at aqbanking code...

Yep, saw that on Eclipse. It's more Windows centric but did glean some info from it. I use Eclipse on Windows at work but not yet at home on OSX.

-------------------------
Brad Grupczynski
brad.gnucash at gmail.com






More information about the gnucash-devel mailing list