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
Please sign in to leave a comment.
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.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
That'd be awesome!
On 2010-11-19 18:17:52 +0800, Dmitry Jemerov <yole@jetbrains.com> said:
>> 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?