Import checkstyle-configuration from sonar into eclipse-checkstyle-plugin

[亡魂溺海] 提交于 2019-12-19 03:36:46

问题


I want to export checkstyle rules from sonar and import them into the checkstyle eclipse plugin. Unfortunately sonar exports the checkstyle rules to a csv file.

But the checkstyle plugin only accepts import of xml files.

Is there any way to do that?


回答1:


You can get it in checkstyle xml format by navigating to

  • Configuration
  • Quality Profiles -> select your Profile
  • activate "Permalinks" tab

This should give you access to the checkstyle config as xml.

In Eclipse you can even configure the checkstyle plugin to use the URL and fetch always the latest rules over the web.



来源:https://stackoverflow.com/questions/5975988/import-checkstyle-configuration-from-sonar-into-eclipse-checkstyle-plugin

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