Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create a Checkstyle Configuration from an Eclipse formatter file

At the moment our team is working with a custom eclipse Formatter configuration. Is there a way to import the generated xml file into Checkstyle to have both on the same ruleset?

like image 678
Sebastian Basner Avatar asked Jul 16 '12 07:07

Sebastian Basner


People also ask

How do you Checkstyle in eclipse?

Right-click on the project. Click on Checkstyle and Activate Checkstyle . (Or, if there is no Checkstyle entry, click on Properties and then select “Checkstyle”, check “Checkstyle active…” and click on OK .)

What is Checkstyle XML?

Checkstyle obtains a configuration from an XML document whose elements specify the configuration's hierarchy of modules and their properties. You provide a file that contains the configuration document when you invoke Checkstyle at the command line, and when you run a Checkstyle task in ant.


1 Answers

As answered here, there is no way to convert a formatter file to a checkstyle ruleset at the moment. The formater file has another syntax as checkstyle, so it's unable to read it.

like image 60
crasp Avatar answered Sep 21 '22 14:09

crasp