Is it possible to hide the Technical Debt metric f

2019-02-27 01:21发布

问题:

I understand that the Technical Debt metric became part of SonarQube after it was a plugin, but I would like to remove it from the dashboard completely, and only show other metrics. Is that possible from the dashboard settings? if not, I appreciate any directions on what parts of the source code have to be edited.

回答1:

Technical Debt is a core feature of SonarQube, so there's no reason why it should be possible to remove it from the main "pages" of the SonarQube web application.

If you want to hide this, you should first ask yourself why. Indeed, technical debt was not invented by SonarQube, this is a famous and widely spread concept that has been there for more than a decade. With this concept come good practices for software development. So again, trying to hide this in SonarQube is a bit weird.

Also, I highly discourage you to fork the code of SonarQube and write your own version just for this. Think 2 seconds how difficult it will be for you to maintain your fork, and I'm sure you will forget this idea as fast as it came to your mind.