将 checkstyle-configuration 从声纳导入到 eclipse-checkstyle-plugin [英] Import checkstyle-configuration from sonar into eclipse-checkstyle-plugin
问题描述
我想从声纳中导出 checkstyle 规则并将它们导入到 checkstyle eclipse 插件中.不幸的是,声纳将 checkstyle 规则导出到 csv 文件.
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.
但是checkstyle插件只接受xml文件的导入.
But the checkstyle plugin only accepts import of xml files.
有什么办法吗?
推荐答案
您可以通过导航到以 checkstyle xml 格式获取它
You can get it in checkstyle xml format by navigating to
- 配置
- 质量概况 ->选择您的个人资料
- 激活固定链接"标签
这应该可以让您以 xml 的形式访问 checkstyle 配置.
This should give you access to the checkstyle config as xml.
在 Eclipse 中,您甚至可以配置 checkstyle 插件以使用 URL 并始终获取网络上的最新规则.
In Eclipse you can even configure the checkstyle plugin to use the URL and fetch always the latest rules over the web.
这篇关于将 checkstyle-configuration 从声纳导入到 eclipse-checkstyle-plugin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!