facebookincubator / automerge
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
  • 2% duplication:
    • 4,367 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 110 duplicated lines
  • 12 duplicates
system2% (110 lines)
Duplication per Extension
js2% (110 lines)
Duplication per Component (primary)
backend2% (84 lines)
frontend1% (20 lines)
src4% (6 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 12 longest duplicates.
See data for all 12 duplicates...
Size#FoldersFilesLinesCode
15 x 2 backend
backend
146:161 (1%)
168:183 (1%)
view
10 x 2 backend
backend
609:618 (1%)
642:651 (1%)
view
8 x 2 backend
backend
417:425 (1%)
451:459 (1%)
view
7 x 2 frontend
frontend
234:243 (2%)
268:277 (2%)
view
6 x 2 backend
backend
116:121 (<1%)
176:181 (<1%)
view
6 x 2 backend
backend
116:121 (<1%)
154:159 (<1%)
view
6 x 2 frontend
src
166:171 (2%)
14:19 (5%)
view
6 x 2 backend
backend
593:598 (<1%)
610:615 (<1%)
view
6 x 2 backend
backend
116:121 (<1%)
136:141 (<1%)
view
6 x 2 backend
backend
136:141 (<1%)
176:181 (<1%)
view
6 x 2 backend
backend
136:141 (<1%)
154:159 (<1%)
view
6 x 2 backend
backend
593:598 (<1%)
643:648 (<1%)
view