[Hawkular-dev] checkstyle/enforcer

Heiko W.Rupp hrupp at redhat.com
Sat Jan 31 12:09:53 EST 2015


> Am 31.01.2015 um 00:16 schrieb John Mazzitelli <mazz at redhat.com>:
> 
> I just converted the bus code to use hawkular-parent which in turn brought checkstyle/enforcer into play.
> 
> I highly recommend everyone do this for your code as soon as you can - the earlier you integrate parent, and especially checkstyle/enforcer, the easier it will be on yourself. Lots of checkstyle and enforcer errors in my stuff that I had to go about fixing... you don't want to do this after you have lots of code that needs to be cleaned up.

I think those checks (while sometimes are annoying) are good.

Having said that, I'd like to see a way to apply them as pre-commit and not on each
mvn compile run. 
While devlopping in 

while (!working) {
    change_some_stuff();
    compile();
    deploy();
    test();
}

mode, being forced to fix import or line length issues is certainly reducing my productivity.

And to repeat: I am very much in favor of enforcing all those checks once the code has left the
above loop.





More information about the hawkular-dev mailing list