[hibernate-dev] Checkstyle: enforced!

Steve Ebersole steve at hibernate.org
Thu Apr 18 12:44:07 EDT 2013


IDEA has a checkstyle plugin (and a jdepend plugin fwiw).  And it will 
also immediately show violations in the editor (as well as collect them 
in the problems window).  It does not auto detect the settings however, 
you need to point it to the file.

You can still compile, run tests, etc.  Very ideal imo.


On 04/18/2013 10:27 AM, Sanne Grinovero wrote:
> On 18 April 2013 16:13, Gunnar Morling <gunnar at hibernate.org> wrote:
>> Yeah, I was just about to suggest that :)
> Good idea, but isn't it true that if your IDE is correctly setup it
> doesn't matter?
> I'm not sure about IDEA, but Eclipse detects the checkstyle rules and
> shows violations right away.
>
>
>> 2013/4/18 Hardy Ferentschik <hardy at hibernate.org>
>>>
>>> On 18 Jan 2013, at 4:48 PM, Sanne Grinovero <sanne at hibernate.org> wrote:
>>>
>>>> Hi all,
>>>>
>>>> yesterday we merged checkstyle integration in Hibernate OGM: it's
>>>> going to fail the compile phase if there are violations (!).
>>> +1 Joining the ranks of Validator and Search :-)
> To clarify, the set of rules defined in OGM are significantly stricter
> than what we had in Search initially.
>
> Cheers,
> Sanne
>
>>> Btw, in HV Gunnar convinced me to attache the checkstyle plugin to the
>>> verify phase.
>>> This way you can hack away w/o caring too much about a coding style since
>>> the compile
>>> will work. However, a full 'mvn install' will fail.
>>>
>>> --Hardy
>>>
>>>
>>> _______________________________________________
>>> hibernate-dev mailing list
>>> hibernate-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>>
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev



More information about the hibernate-dev mailing list