将checkstyle配置从sonar导入eclipse-checkstyle-plugin [英] Import checkstyle-configuration from sonar into eclipse-checkstyle-plugin

查看:1359
本文介绍了将checkstyle配置从sonar导入eclipse-checkstyle-plugin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从声纳导出checkstyle规则并将其导入checkstyle eclipse插件。不幸的是sonar将checkstyle规则导出到csv文件。



但是checkstyle插件只接受xml文件的导入。



解决方案

您可以通过导航到




  • 配置

  • 质量配置文件 - >选择您的个人资料

  • 激活固定链接标签



config as xml。

在Eclipse中,你甚至可以配置checkstyle插件来使用URL并总是通过网络获取最新的规则。


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?

解决方案

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.

这篇关于将checkstyle配置从sonar导入eclipse-checkstyle-plugin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆