0

I'm a new user of sonar. Now I need to customize metrics, but I didn't find the related documentation. If I have to coding a plugin? I do the same with http://docs.sonarqube.org/display/SONAR/Getting+Started, but I failed. There is no difference at the localhost:9000/profiles.

4

2 回答 2

3

为了正确集成到 Sonar 构建中,您需要编写插件:

如果您只想向仪表板添加一些额外的临时指标,则可以选择使用手动度量:

有一个 REST API 可用于创建和发布手动指标值:

于 2012-07-30T23:53:31.563 回答
0

您可以通过声纳 GUI 使用手动指标创建新指标(我认为您需要管理员权限)。手动指标也可以通过 GUI 更新。

如果您的插件构建正常但没有出现数字:您还必须运行分析以使用一些度量填充新指标。

于 2014-11-21T15:06:45.263 回答