Sonarqube duplicated lines percentage


Based on the calculations, this percentage should’ve been 439 /17120 * 100 = 2.56%

Can you please help my team determine how 1.8% has been generated?

Thank you,

Warm welcome @mel ,

The 1.8% number has been generated exactly how it says in the documentation:

duplicated_lines / lines * 100

The reason why your calculations give you ‘wrong’ number is because 17,120 is a number of Lines of Code which is different metric from Lines. The difference is really well described in the Size section
in the page you linked above.

You’re welcome,

1 Like

Thank you for the explanation @Lukasz_Jarocki! My calculations are adding up now


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.