fbsamples / fbinstant-samples
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
  • 10% duplication:
    • 1,061 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 114 duplicated lines
  • 7 duplicates
system10% (114 lines)
Duplication per Extension
js11% (114 lines)
Duplication per Component (primary)
common/js/mock16% (82 lines)
server-examples/nodejs-backend16% (26 lines)
server-examples/nodejs-bot7% (6 lines)
tasks0% (0 lines)
common/css/mock0% (0 lines)
common/css0% (0 lines)
common/js0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
19 x 2 common/js/mock
common/js/mock
fbinstant.6.2.mock.js
fbinstant.6.2.mock.js
65:87 (3%)
156:178 (3%)
view
13 x 2 common/js/mock
common/js/mock
fbinstant.6.2.mock.js
fbinstant.6.2.mock.js
349:362 (2%)
394:407 (2%)
view
10 x 2 server-examples/nodejs-backend
server-examples/nodejs-backend
matches.js
matches.js
37:55 (7%)
92:110 (7%)
view
6 x 2 server-examples/nodejs-backend
server-examples/nodejs-bot
index.js
index.js
14:20 (46%)
15:21 (50%)
view
6 x 2 common/js/mock
common/js/mock
fbinstant.6.2.mock.js
fbinstant.6.2.mock.js
119:124 (1%)
143:148 (1%)
view
6 x 2 common/js/mock
common/js/mock
fbinstant.6.2.mock.js
fbinstant.6.2.mock.js
131:136 (1%)
143:148 (1%)
view
6 x 2 common/js/mock
common/js/mock
fbinstant.6.2.mock.js
fbinstant.6.2.mock.js
119:124 (1%)
131:136 (1%)
view