Sonar,QAPlug,IntelliJ集成 - 多个配置文件? [英] Sonar, QAPlug, IntelliJ Integration - Multiple profiles?

查看:993
本文介绍了Sonar,QAPlug,IntelliJ集成 - 多个配置文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已在我们的构建服务器上设置了Sonar安装,以便我们可以维护有关我们的编码规则合规性,代码覆盖率等的报告。

I've set up a Sonar installation on our build server so that we can maintain reporting on our coding rules compliance, code coverage, etc.

我想要什么要做的是将这个Sonar安装作为checkStyle,findBugs和PMD规则的主要来源。 Sonar通过允许您修改其使用的规则并将其导出来支持此功能。然后,我可以将这些规则导入到使用QAPlug插件运行IntelliJ Idea的开发人员计算机上。

What I want to do is maintain this Sonar installation as the main source of our checkStyle, findBugs and PMD rules. Sonar supports this by letting you modify the rules its using and export them. I can then import these rules to developer machines running IntelliJ Idea with the QAPlug plugin.

问题是我必须单独导入配置文件。这意味着我必须使用checkStyle配置文件运行QAPlug,然后运行PMD插件,然后运行findBugs插件。这是一个太多的步骤,以期望开发人员一直这样做。

The problem is that I have to import profiles individually. Which means I will have to run QAPlug with the checkStyle profile, then then the PMD plugin, then the findBugs plugin. This is a few too many steps to expect developers to do all the time.

我可以将它们组合在插件本身中,以便它同时执行PMD,checkStyle和findBugs规则。但是,维护配置文件的步骤数量变得太大。即。修改Sonar中的规则,导出3个配置文件,将3个配置文件合并为一个,分发给开发人员。

I can combine them within the plugin itself, so that it executes PMD, checkStyle and findBugs rules at the same time. But then the amount of steps to maintain the profile becomes too large. ie. Modify rule in Sonar, export 3 profiles, combine 3 profiles into one, distribute to developers.

有没有更好的方法来实现这一目标?

Is there a better way of achieving this goal?

推荐答案

原来可以导入已存在的配置文件。所以我只需要将所有3个文件导入到QAPlug中,现在我有一个组合的配置文件。

Turns out that you can import into an already existing profile. So I just needed to import all 3 files into QAPlug, and now I have a combined profile.

这篇关于Sonar,QAPlug,IntelliJ集成 - 多个配置文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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