You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by frederic heem <fr...@gmail.com> on 2008/08/22 17:08:37 UTC

checkstyle.xml

Hi,
Is there a checkstyle.xml that conforms to the apache coding style ? That
would be very useful to automatically check the coding style before
commiting it. A patch is about to be sent but the coding style conforms to
the Sun standard and therefore does not comply with apache one. By the way,
why are they different ?
Best regards.
Frederic Heem

Re: checkstyle.xml

Posted by Luc Maisonobe <Lu...@free.fr>.
frederic heem a écrit :
> Hi,
> Is there a checkstyle.xml that conforms to the apache coding style ? That
> would be very useful to automatically check the coding style before
> commiting it. A patch is about to be sent but the coding style conforms to
> the Sun standard and therefore does not comply with apache one. By the way,
> why are they different ?
> Best regards.
> Frederic Heem
> 

Common components do not exactly share the same style. There are some
basic general rules (for example no tab characters), but when it comes
to fine details, discrepancies appear.

You can for example look at commons-math (the checkstyle.xml from branch
2.0 is more recent than the one in the trunk) or even at nabla (in
sandbox) which has a rather strict setting.

In addition to style, one important thing to check is that the end of
line encoding property for subversion is set to "native". This is of
prime importance since all developers do not use the same operating systems.

Luc



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org