Manual metrics and treemap components
Posted
by
Greg
on Stack Overflow
See other posts from Stack Overflow
or by Greg
Published on 2013-06-30T08:30:04Z
Indexed on
2013/06/30
10:21 UTC
Read the original article
Hit count: 280
sonar
I have a problem with SonarQube.
I use web API to inject manual metrics values for a project like this :
curl -u nom:password -d "resource=<projet>&metric=<key de la metric>&val=<valeur>" http://localhost:8081/sonar/api/manual_measures
One of these metrics is a percentage and this metric is declared as a Percentage value in Sonar in Settings => Manual Metrics window. I have a project with components and each project and components have this metric value.
When I want to show this metric as a color metric in a "treemap of components" of widget, all the treemap is grey (as if values are not defined).
But if I put mouse on the name of component in treemap, I saw the color metric value as a percentage value like this : myComponent - ncloc: 800 - myMetric: 84,0%
Moreover, scale metric color does not appear in treemap title (after Size ncloc Color <my metric>
).
© Stack Overflow or respective owner