facebook / chisel
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
  • 15% duplication:
    • 4,926 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 762 duplicated lines
  • 30 duplicates
system15% (762 lines)
Duplication per Extension
py16% (762 lines)
Duplication per Component (primary)
commands11% (464 lines)
ROOT40% (298 lines)
Chisel/ChiselTests0% (0 lines)
Chisel/Chisel-macOS0% (0 lines)
Chisel/Chisel0% (0 lines)
Longest Duplicates
The list of 30 longest duplicates.
See data for all 30 duplicates...
Size#FoldersFilesLinesCode
139 x 2 ROOT
ROOT
15:203 (100%)
15:203 (100%)
view
43 x 2 commands
commands
86:138 (4%)
218:270 (4%)
view
19 x 2 commands
commands
252:270 (7%)
178:196 (11%)
view
18 x 2 commands
commands
81:98 (20%)
61:78 (6%)
view
16 x 2 commands
commands
161:186 (1%)
245:270 (1%)
view
16 x 2 commands
commands
113:138 (1%)
161:186 (1%)
view
15 x 2 commands
commands
691:706 (1%)
736:751 (1%)
view
13 x 2 commands
commands
58:71 (4%)
197:210 (4%)
view
12 x 2 commands
commands
34:47 (1%)
159:171 (1%)
view
12 x 2 commands
commands
479:491 (1%)
517:529 (1%)
view
12 x 2 commands
commands
1394:1410 (1%)
1448:1464 (1%)
view
11 x 2 commands
commands
81:91 (12%)
200:210 (3%)
view
11 x 2 commands
commands
59:71 (4%)
105:117 (4%)
view
10 x 2 commands
commands
36:47 (1%)
113:123 (1%)
view
10 x 2 commands
commands
36:47 (1%)
245:255 (1%)
view
9 x 2 commands
commands
35:43 (4%)
57:65 (4%)
view
9 x 2 commands
commands
213:223 (4%)
239:249 (4%)
view
8 x 2 commands
commands
65:72 (8%)
50:57 (1%)
view
7 x 2 ROOT
ROOT
71:77 (4%)
115:121 (4%)
view
7 x 2 commands
commands
501:507 (<1%)
532:538 (<1%)
view
7 x 2 commands
commands
54:62 (8%)
49:57 (3%)
view
7 x 2 commands
commands
51:57 (2%)
97:103 (2%)
view
6 x 2 commands
ROOT
141:146 (3%)
114:119 (7%)
view
6 x 2 commands
commands
78:83 (2%)
59:64 (<1%)
view
6 x 2 commands
commands
41:46 (1%)
413:418 (<1%)
view
6 x 2 commands
ROOT
24:29 (40%)
115:120 (4%)
view
6 x 2 commands
commands
79:84 (2%)
142:147 (2%)
view
6 x 2 commands
commands
80:86 (<1%)
203:209 (<1%)
view
6 x 2 commands
ROOT
24:29 (40%)
71:76 (4%)
view
6 x 2 commands
commands
82:88 (6%)
91:97 (<1%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
33 x 2 ROOT
ROOT
0:0 
0:0 
view