In Sonarqube versions prior to 5.5 there was the possibility to change the way that technical debt is calculated in order to take into account the complexity, but after 5.5 I can’t see how to change it. Did you remove this configuration?
IMHO, the cost of remediation is much harder in a complex code than in a simpler one. Here is a post where you can see and compare two similar projects with similar technical debt based on size, but with quite different technical debt based on complexity. Also, coverage is affecting to this measure; and I think that it is easier to modify code when you have enough tests and coverage that assures that you are not breaking anything.
In sonarqube documentation, the formula that is used to calculate the technical debt ratio is:
Remediation cost / (Cost to develop 1 line of code * Number of lines of code)
But the remediation cost is a fixed amount of time configured on each rule, isn't it?. So it is independent from the complexity you can find in the code.
Here is an image where you can see how this could be done in version 5.1.2: Technical debt with complexity
Is there any way to configure, in LTS or version 6.x , the technical debt so that the complexity is taken into account like it was in previous versions?
If not, is that in your road map? Do you have any reference that complexity or coverage does not affect to remediation cost?
Thanks in advance.
Note: The new concept of cognitive complexity seems very interesting, we're talking again about complexity, it would be a good candidate. But I haven't seen how to see it in Sonarqube 6.3.1, is it possible?