facebook / between-meals
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
  • 16% duplication:
    • 2,066 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 340 duplicated lines
  • 56 duplicates
system16% (340 lines)
Duplication per Extension
rb16% (340 lines)
Duplication per Component (primary)
spec31% (260 lines)
lib/between_meals/repo18% (74 lines)
lib/between_meals/repo/hg12% (6 lines)
ROOT0% (0 lines)
lib/between_meals0% (0 lines)
lib/between_meals/changes0% (0 lines)
lib/between_meals/repo/svn0% (0 lines)
lib/between_meals/repo/git0% (0 lines)
Longest Duplicates
The list of 50 longest duplicates.
See data for all 56 duplicates...
Size#FoldersFilesLinesCode
15 x 2 lib/between_meals/repo
lib/between_meals/repo
93:109 (9%)
51:67 (9%)
view
12 x 2 lib/between_meals/repo
lib/between_meals/repo
95:108 (7%)
67:79 (14%)
view
12 x 2 lib/between_meals/repo
lib/between_meals/repo
53:66 (7%)
67:79 (14%)
view
11 x 2 spec
spec
42:52 (10%)
58:68 (10%)
view
11 x 2 spec
spec
53:63 (3%)
188:198 (3%)
view
11 x 2 spec
spec
89:99 (3%)
204:214 (3%)
view
11 x 2 spec
spec
46:56 (15%)
58:68 (10%)
view
11 x 2 spec
spec
46:56 (15%)
42:52 (10%)
view
10 x 2 spec
spec
54:63 (3%)
131:140 (3%)
view
10 x 2 spec
spec
40:49 (10%)
47:56 (10%)
view
10 x 2 spec
spec
131:140 (3%)
189:198 (3%)
view
10 x 2 spec
spec
78:87 (9%)
98:107 (9%)
view
9 x 2 lib/between_meals/repo
lib/between_meals/repo
205:213 (5%)
109:117 (10%)
view
9 x 2 spec
spec
81:89 (12%)
113:121 (8%)
view
8 x 2 spec
spec
39:47 (2%)
28:36 (7%)
view
8 x 2 spec
spec
28:36 (11%)
28:36 (7%)
view
8 x 2 spec
spec
39:47 (2%)
28:36 (11%)
view
7 x 2 spec
spec
134:140 (2%)
158:164 (2%)
view
7 x 2 spec
spec
158:164 (2%)
192:198 (2%)
view
7 x 2 spec
spec
77:83 (2%)
134:140 (2%)
view
7 x 2 spec
spec
117:123 (2%)
46:52 (10%)
view
7 x 2 spec
spec
70:76 (6%)
90:96 (6%)
view
7 x 2 spec
spec
158:164 (2%)
220:226 (2%)
view
7 x 2 spec
spec
117:123 (2%)
58:64 (6%)
view
7 x 2 spec
spec
57:63 (2%)
220:226 (2%)
view
7 x 2 spec
spec
146:152 (2%)
192:198 (2%)
view
7 x 2 spec
spec
73:79 (2%)
98:104 (6%)
view
7 x 2 spec
spec
77:83 (2%)
158:164 (2%)
view
7 x 2 spec
spec
134:140 (2%)
220:226 (2%)
view
7 x 2 spec
spec
65:71 (2%)
85:91 (2%)
view
7 x 2 lib/between_meals/repo
lib/between_meals/repo
191:197 (4%)
203:209 (4%)
view
7 x 2 spec
spec
49:55 (2%)
70:76 (6%)
view
7 x 2 spec
spec
146:152 (2%)
220:226 (2%)
view
7 x 2 spec
spec
77:83 (2%)
146:152 (2%)
view
7 x 2 spec
spec
73:79 (2%)
78:84 (6%)
view
7 x 2 spec
spec
192:198 (2%)
220:226 (2%)
view
7 x 2 spec
spec
49:55 (2%)
90:96 (6%)
view
7 x 2 spec
spec
146:152 (2%)
158:164 (2%)
view
7 x 2 spec
spec
57:63 (2%)
77:83 (2%)
view
7 x 2 spec
spec
77:83 (2%)
192:198 (2%)
view
7 x 2 spec
spec
57:63 (2%)
146:152 (2%)
view
7 x 2 spec
spec
134:140 (2%)
146:152 (2%)
view
7 x 2 spec
spec
77:83 (2%)
220:226 (2%)
view
7 x 2 spec
spec
57:63 (2%)
158:164 (2%)
view
7 x 2 spec
spec
117:123 (2%)
42:48 (6%)
view
6 x 2 spec
spec
49:54 (1%)
65:70 (1%)
view
6 x 2 spec
spec
65:70 (1%)
90:95 (5%)
view
6 x 2 spec
spec
49:54 (1%)
85:90 (1%)
view
6 x 2 spec
spec
88:93 (1%)
104:109 (1%)
view
6 x 2 lib/between_meals/repo
lib/between_meals/repo/hg
208:213 (3%)
67:72 (12%)
view