6

In sonarqube 5.6.4, how do I view the duplicate code blocks? In 4.5, there was a mostly hidden UI element under the duplication metric. Now it does nothing.

Since the issue is attached to a top of the file, how can I tell what I need to fix?

G. Ann - SonarSource Team
  • 22,346
  • 4
  • 40
  • 76
bkilgore
  • 129
  • 1
  • 7

2 Answers2

4

Duplications are marked by a yellow-orange bar in the left margin. Click it to see details:

enter image description here

G. Ann - SonarSource Team
  • 22,346
  • 4
  • 40
  • 76
  • Ok, i see that now. Is there no way to filter it down to only duplicated code like in 4.5? some of our files are 10-20k lines (that is next year's battle) and the duplication are hard to find. – bkilgore Jan 27 '17 at 19:48
  • 2
    In v9.5, the blocks are grey. – derekbaker783 Dec 28 '22 at 12:54
0

It's pretty similar to how it was in 4.5.x actually. When scrolling through the sources, look for the orange marker on the left next to the line number. Clicking on it will give you details on where the duplication comes from ( screenshot ).

Nicolas B.
  • 7,245
  • 17
  • 29