fbsamples / original-coast-clothing
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
  • 11% duplication:
    • 1,299 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 147 duplicated lines
  • 12 duplicates
system11% (147 lines)
Duplication per Extension
js10% (129 lines)
ejs26% (18 lines)
Duplication per Component (primary)
services12% (129 lines)
views26% (18 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 12 longest duplicates.
See data for all 12 duplicates...
Size#FoldersFilesLinesCode
11 x 2 services
services
curation.js
curation.js
51:61 (6%)
178:188 (6%)
view
10 x 2 services
services
graph-api.js
graph-api.js
39:48 (6%)
188:197 (6%)
view
9 x 2 views
views
ejs
footer.ejs
index.ejs
1:9 (81%)
1:9 (25%)
view
8 x 2 services
services
graph-api.js
graph-api.js
21:28 (4%)
39:46 (4%)
view
8 x 2 services
services
care.js
receive.js
36:45 (8%)
201:210 (4%)
view
8 x 2 services
services
graph-api.js
graph-api.js
21:28 (4%)
188:195 (4%)
view
8 x 2 services
services
curation.js
curation.js
182:189 (4%)
204:211 (4%)
view
8 x 2 services
services
response.js
response.js
34:42 (8%)
55:63 (8%)
view
7 x 2 services
services
curation.js
curation.js
55:61 (4%)
204:210 (4%)
view
7 x 2 services
services
graph-api.js
graph-api.js
120:126 (4%)
218:224 (4%)
view
6 x 2 services
services
graph-api.js
graph-api.js
66:74 (3%)
106:114 (3%)
view
6 x 2 services
services
receive.js
response.js
238:245 (3%)
138:145 (6%)
view