[Kde-pim] Re: Kdepim coding style: indentation

Allen Winter winter at kde.org
Tue Mar 1 14:35:25 GMT 2011


On Tuesday 01 March 2011 9:16:53 am Sérgio Martins wrote:
> On Tue, Mar 1, 2011 at 1:46 PM, David Jarvie <djarvie at kde.org> wrote:
> > I'd like to propose that the kdepim coding standard
> > http://community.kde.org/KDE_PIM/Development/CodingStyle/Korganizer should
> > be amended to allow indentation with either 2 or 4 spaces.
> 
> Good idea. We should move that standard to a more general page too.
> 
> To avoid
> > confusion when reading code, the two indentations should not, of course,
> > be mixed together. The standard should stipulate that the same indentation
> > should be used throughout each source file.
> 
> I suggest the same indentation be used in the same library/application
> instead of by file.
> Lots of applications have individual maintainers ( kfacebook, kalarm,
> ktimetracker... ) and they might not like random files with a
> different indentation.
> 
> 
I agree with Sergio.
Let's keep the indentation consistent within each project.

And you can also tell Krazy about this by putting the following line in your project's .krazy file:
STYLE_OFFSET 4

_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list