microsoft / tslib
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
  • 44% duplication:
    • 474 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 210 duplicated lines
  • 9 duplicates
system44% (210 lines)
Duplication per Extension
js44% (210 lines)
Duplication per Component (primary)
ROOT38% (160 lines)
modules92% (50 lines)
Longest Duplicates
The list of 9 longest duplicates.
See data for all 9 duplicates...
Size#FoldersFilesLinesCode
25 x 2 modules
modules
index.js
index.js
3:27 (46%)
30:54 (46%)
view
23 x 2 ROOT
ROOT
tslib.es6.js
tslib.js
81:104 (13%)
123:146 (9%)
view
11 x 2 ROOT
ROOT
tslib.es6.js
tslib.js
133:146 (6%)
175:188 (4%)
view
9 x 2 ROOT
ROOT
tslib.es6.js
tslib.js
180:188 (5%)
222:230 (3%)
view
8 x 2 ROOT
ROOT
tslib.es6.js
tslib.js
206:214 (4%)
248:256 (3%)
view
8 x 2 ROOT
ROOT
tslib.es6.js
tslib.js
44:52 (4%)
86:94 (3%)
view
8 x 2 ROOT
ROOT
tslib.es6.js
tslib.js
121:129 (4%)
163:171 (3%)
view
7 x 2 ROOT
ROOT
tslib.es6.js
tslib.js
71:77 (4%)
113:119 (2%)
view
6 x 2 ROOT
ROOT
tslib.es6.js
tslib.js
109:114 (3%)
155:160 (2%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
21 x 2 ROOT
ROOT
tslib.es6.js
tslib.js
84:105 
126:147 
view