You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Donal Lafferty <do...@citrix.com> on 2013/07/05 18:00:54 UTC
codestyle checker?
I'd like to clean up my Java so that it matches codestyle (http://cloudstack.apache.org/develop/coding-conventions.html).
Is there a tool that will check / fix my code?
DL
Re: codestyle checker?
Posted by Chip Childers <ch...@sungard.com>.
On Tue, Jul 16, 2013 at 01:22:22PM +0000, Donal Lafferty wrote:
> Turns out faster to use CheckStyle, Eclipse and ACS code style file.
>
> See http://dlafferty.blogspot.co.uk/2013/07/apache-cloudstack-java-coding.html
Awesome post Donal!
>
> > -----Original Message-----
> > From: Donal Lafferty [mailto:donal.lafferty@citrix.com]
> > Sent: 08 July 2013 10:15 AM
> > To: dev@cloudstack.apache.org
> > Subject: RE: codestyle checker?
> >
> > >
> > > No tool I know of, just nice idea to write one. Some projects have
> > > such tools, for example golang has gofmt to format code as per a
> > > convention, but even then there are hacks :P
> > [Donal Lafferty]
> > I'll share anything that I come up with.
> >
> > >
> > > Try to read and remember the convention and adapt your coding style to
> > > the convention which always works :)
> > [Donal Lafferty]
> > Sound advice.
>
>
RE: codestyle checker?
Posted by Donal Lafferty <do...@citrix.com>.
Turns out faster to use CheckStyle, Eclipse and ACS code style file.
See http://dlafferty.blogspot.co.uk/2013/07/apache-cloudstack-java-coding.html
> -----Original Message-----
> From: Donal Lafferty [mailto:donal.lafferty@citrix.com]
> Sent: 08 July 2013 10:15 AM
> To: dev@cloudstack.apache.org
> Subject: RE: codestyle checker?
>
> >
> > No tool I know of, just nice idea to write one. Some projects have
> > such tools, for example golang has gofmt to format code as per a
> > convention, but even then there are hacks :P
> [Donal Lafferty]
> I'll share anything that I come up with.
>
> >
> > Try to read and remember the convention and adapt your coding style to
> > the convention which always works :)
> [Donal Lafferty]
> Sound advice.
RE: codestyle checker?
Posted by Donal Lafferty <do...@citrix.com>.
>
> No tool I know of, just nice idea to write one. Some projects have such tools,
> for example golang has gofmt to format code as per a convention, but even
> then there are hacks :P
[Donal Lafferty]
I'll share anything that I come up with.
>
> Try to read and remember the convention and adapt your coding style to the
> convention which always works :)
[Donal Lafferty]
Sound advice.
Re: codestyle checker?
Posted by Rohit Yadav <bh...@apache.org>.
On Fri, Jul 5, 2013 at 9:30 PM, Donal Lafferty <do...@citrix.com>wrote:
> I'd like to clean up my Java so that it matches codestyle (
> http://cloudstack.apache.org/develop/coding-conventions.html).
>
> Is there a tool that will check / fix my code?
>
No tool I know of, just nice idea to write one. Some projects have such
tools, for example golang has gofmt to format code as per a convention, but
even then there are hacks :P
Try to read and remember the convention and adapt your coding style to the
convention which always works :)
Cheers.
>
> DL
>
>