SonarQube 6没有大众(查看)类型的新指标

时间:2018-06-12 13:28:08

标签: sonarqube

我们最近升级到SonarCube 6,看起来我们再也无法获得" new"违反视图。我们确实得到了各种违规类型的计数,而不是新的。组成视图的项目确实显示新违规的计数。

那么,是否有可能得到新的"与视图相关的违规计数?

谢谢,

大卫。

这是一个例子(FOO是一个视图) -

http://sonar:9001/api/measures/component_tree?component=FOO&ps=500&metricKeys=coverage,new_coverage,blocker_violations,critical_violations,new_blocker_violations,new_critical_violations

结果 -

paging  {…}
baseComponent   
id  "3a85c467-31c0-40aa-b733-afb139debf0e"
key "FOO"
name    "FOO"
qualifier   "VW"
measures    
0   
metric  "new_coverage"
periods 
0   
index   1
value   "61.894319444861665"
1   
metric  "blocker_violations"
value   "1499"
2   
metric  "critical_violations"
value   "19879"
3   
metric  "coverage"
value   "71.0"

部件
    0 {...}

1   
id  "faf598f9-d8d0-4db0-8e15-cd9a54102264"
key "FOOcom.xxx.yyy.li…baz:baz-pom"
refId   "68a7dbf0-28a5-4899-a7d1-ecd061f13455"
refKey  "com.xxx.yyy..baz:baz-pom"
name    "baz-pom"
qualifier   "TRK"
measures    
0   
metric  "new_critical_violations"
periods 
0   
index   1
value   "72"
1   
metric  "new_blocker_violations"
periods 
0   
index   1
value   "10"
2   
metric  "new_coverage"
periods 
0   
index   1
value   "87.23404255319149"
3   
metric  "blocker_violations"
value   "10"
periods 
0   
index   1
value   "10"
4   
metric  "critical_violations"
value   "72"
periods 
0   
index   1
value   "72"
5   
metric  "coverage"
value   "85.7"
periods 
0   
index   1
value   "85.7"

0 个答案:

没有答案