bfd
bfd

Reputation: 31

SonarQube configurable technical debt

We get a java app source code shipped from a partner, but it doesn't include test code.

We want to run sonar qube against the code; but against our standard quality profile (PMD/Findbugs etc) technical debt gets skewed by no test coverage. I tried disabling the coverage rules, or setting the coverage ration to 0 but that just killed everything, no issues, no technical debt or useful feedback on the code.

Can anyone suggest a ruleset or mechanism that would allow us to run a sonar report on the code and retain some of the useful feedback relating to technical debt? Other than writing a new plugin....

Upvotes: 1

Views: 1596

Answers (1)

Jandisson
Jandisson

Reputation: 380

In the todays sonar configuration there is an option to define where are the coverage test result file. Sonar only reads the file to figure out the coverage.

This file is in a default folder. If it don't exists sonar will ignore coverage aspects during the scan. What I did sometimes was just change the default location to some unexistent folder.

I will not give here the exact path to find this configuration in sonar because it changes from time to time. However, you should find it very easily.

Upvotes: 0

Related Questions