google / redgrep
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
  • Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
  • You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
Duplication Overall
  • 4% duplication:
    • 2,063 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 102 duplicated lines
  • 6 duplicates
system4% (102 lines)
Duplication per Extension
cc4% (70 lines)
yy12% (32 lines)
Duplication per Component (primary)
ROOT4% (102 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
16 x 2 ROOT
ROOT
yy
parser.yy
parser.yy
131:147 (6%)
286:302 (6%)
view
9 x 2 ROOT
ROOT
regexp.cc
regexp.cc
1037:1047 (<1%)
1051:1061 (<1%)
view
7 x 2 ROOT
ROOT
regexp.cc
regexp.cc
713:720 (<1%)
759:766 (<1%)
view
7 x 2 ROOT
ROOT
regexp.cc
regexp.cc
433:445 (<1%)
468:480 (<1%)
view
6 x 2 ROOT
ROOT
regexp.cc
regexp.cc
723:731 (<1%)
769:777 (<1%)
view
6 x 2 ROOT
ROOT
regexp.cc
regexp.cc
891:896 (<1%)
905:910 (<1%)
view