i developed a custom plugin, but the debt remediation is not calculated, knowing that i have lot of different issues raised during the analysis. All of those issues are of type “func = Linear” and “LinearFactor = XYmin” . I always see a value of zero in sonar dashboard
Here is a sample of json file describing the settings of one issue { "title": "Caches should be used", "type": "BUG", "status": "ready", "remediation": { "func": "Linear", "linearFactor": "15min" }, "tags": [ "pitfall", "confusing", "unused" ], "defaultSeverity": "Critical", "sqKey": "GW-CACHE-01", "scope": "Main" }
Am i missing some other specific configuration somewhere ?
I use this SonarXmlCheck.reportIssue(…) to add new issues.
I have no possibility (apparently) to set the gap afterwards.
It is possible to set it up directly from the JSON file definition ?
Actually, i even just noticed that when i also use func : “Constant/Issue” with “constantCost” , the debt remediation is not calculated neither.
I think that the issue is even somewhere else { "title": "foobar", "type": "BUG", "status": "ready", "remediation": { "func": "Constant\/Issue", "constantCost": "55min" }, "tags": [ "clumsy", "bad-practice", "user-experience", "design" ], "defaultSeverity": "Critical", "sqKey": "GW-POL-04", "scope": "Main" }
@Julien_HENRY, well i noticed another interesting thing actually
The debt remediation is calculated correctly actually, i can see in the “Issues” tab (See screenshot) … 4 issues of 5 min ==> 20 min (so far, so good !)