(Also an answer to Hans Lesmeister)

Afaik there is no checkstyle plugin that can do the same as eclipse
formatter + save actions: format and clean up code upon save. Checkstyle
will only test that the rules are met or not. It is not very convenient
(also not possible to reformat whole projects with one click).

It seems CXF could manage it somehow but it does not look pretty:
http://cxf.apache.org/connecting-maven-eclipse-checkstyle-and-pmd.html

2011/4/7 James Carman <[email protected]>

> On Thu, Apr 7, 2011 at 6:47 AM, James Carman <[email protected]>
> wrote:
> > On Thu, Apr 7, 2011 at 2:04 AM, Attila Király <[email protected]>
> wrote:
> >>
> >> We can add the eclipse prefs to git so it gets configured automatically.
> Do
> >> not know how to do it for other IDE-s.
> >>
> >> If we add this I do not think that we should reformat all projects at
> once.
> >> Only to do it when we touch a project or file. A complete reformat could
> >> make it harder to dig in the version history of the files.
> >>
> >
> > Just use checkstyle:
> >
> > http://checkstyle.sourceforge.net/
> >
>
> Sorry, hit send too early (it's too early for me apparently).  Trying
> to maintain all of these settings for different IDEs and checking them
> into SVN isn't a good idea.  Checkstyle can help you flag code that
> looks funny using the CI server (or when they build it locally)
>

Reply via email to