Codestyle from Checkstyle

Hello all,

How can I generate the IDEA CodeStyle for Java originating from a Checkstyle.xml document?

Sure - it is simple enough to *validate* code from the Checkstyle specification using one of the
Checkstyle plugins. However, this is not optimal.

Instead, I would like to *format* the code using IDEA's normal Code style formatting.
Thus, I need the functionality to generate IDEA's Code Style originating from a Checkstyle document.

How do I do that?

PS. This is a fairly common scenario for all consultants who move [frequently] between different projects.
The only common denominator standard seems to be the Checkstyle.xml configuration document.
It takes quite a while (and is error-prone) to manually re-generate am IDEA Codestyle from a Checkstyle.xml definition.
Thus, I would like this autogeneration feature. Fair?
DS.

// Best regards,
// Lennart Jörelid

2 comments
Comment actions Permalink

Hello Lennart,

There is no such feature in IntelliJ IDEA at the moment. You can file a feature
request at http://youtrack.jetbrains.net/ or you can implement this as a
third-party plugin.

How can I generate the IDEA CodeStyle for Java originating from a
Checkstyle.xml document?

Sure - it is simple enough to validate code from the Checkstyle
specification using one of the Checkstyle plugins. However, this is
not optimal.

Instead, I would like to format the code using IDEA's normal Code
style formatting. Thus, I need the functionality to generate IDEA's
Code Style originating from a Checkstyle document.

How do I do that?

PS. This is a fairly common scenario for all consultants who move
between different projects.

The only common denominator standard seems to be the Checkstyle.xml
configuration document.

It takes quite a while (and is error-prone) to manually re-generate am
IDEA Codestyle from a Checkstyle.xml definition.

Thus, I would like this autogeneration feature. Fair?


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

That'd be awesome!

On 2010-11-19 18:17:52 +0800, Dmitry Jemerov <yole@jetbrains.com> said:

Hello Lennart,

There is no such feature in IntelliJ IDEA at the moment. You can file a
feature request at http://youtrack.jetbrains.net/ or you can implement
this as a third-party plugin.

>> How can I generate the IDEA CodeStyle for Java originating from a
>> Checkstyle.xml document?
>>
>> Sure - it is simple enough to validate code from the Checkstyle
>> specification using one of the Checkstyle plugins. However, this is
>> not optimal.
>>
>> Instead, I would like to format the code using IDEA's normal Code
>> style formatting. Thus, I need the functionality to generate IDEA's
>> Code Style originating from a Checkstyle document.
>>
>> How do I do that?
>>
>> PS. This is a fairly common scenario for all consultants who move
>> between different projects.
>>
>> The only common denominator standard seems to be the Checkstyle.xml
>> configuration document.
>>
>> It takes quite a while (and is error-prone) to manually re-generate am
>> IDEA Codestyle from a Checkstyle.xml definition.
>>
>> Thus, I would like this autogeneration feature. Fair?


0

Please sign in to leave a comment.