Create a Checkstyle Configuration from an Eclipse formatter file

為{幸葍}努か 提交于 2021-01-02 08:09:10

问题


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?


回答1:


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.




回答2:


Preferences -> Java -> Code Style - > Formatter

You can import/export or create a new format rules.



来源:https://stackoverflow.com/questions/11499984/create-a-checkstyle-configuration-from-an-eclipse-formatter-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!