microsoft / node-diagnostic-channel
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
  • 21% duplication:
    • 1,068 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 227 duplicated lines
  • 11 duplicates
system21% (227 lines)
Duplication per Extension
ts23% (227 lines)
Duplication per Component (primary)
src/diagnostic-channel-publishers/src29% (227 lines)
ROOT0% (0 lines)
sample0% (0 lines)
src/diagnostic-channel-publishers0% (0 lines)
src/diagnostic-channel/src0% (0 lines)
src/subs/bunyan-sub0% (0 lines)
src/subs/console-sub0% (0 lines)
src/subs/mongodb-sub0% (0 lines)
src/subs/mysql-sub0% (0 lines)
src/subs/redis-sub0% (0 lines)
Longest Duplicates
The list of 11 longest duplicates.
See data for all 11 duplicates...
Size#FoldersFilesLinesCode
22 x 2 src/diagnostic-channel-publishers/src
src/diagnostic-channel-publishers/src
pg.pub.ts
pg.pub.ts
40:64 (10%)
163:187 (10%)
view
19 x 2 src/diagnostic-channel-publishers/src
src/diagnostic-channel-publishers/src
mongodb.pub.ts
mongodb.pub.ts
84:111 (13%)
161:188 (13%)
view
12 x 2 src/diagnostic-channel-publishers/src
src/diagnostic-channel-publishers/src
pg.pub.ts
pg.pub.ts
72:86 (5%)
189:203 (5%)
view
11 x 2 src/diagnostic-channel-publishers/src
src/diagnostic-channel-publishers/src
pg.pub.ts
tedious.pub.ts
13:24 (5%)
14:25 (23%)
view
11 x 2 src/diagnostic-channel-publishers/src
src/diagnostic-channel-publishers/src
pg.pub.ts
pg.pub.ts
118:130 (5%)
231:243 (5%)
view
9 x 2 src/diagnostic-channel-publishers/src
src/diagnostic-channel-publishers/src
azure-coretracing.pub.ts
azure-coretracing.pub.ts
41:49 (14%)
64:72 (14%)
view
7 x 2 src/diagnostic-channel-publishers/src
src/diagnostic-channel-publishers/src
pg.pub.ts
pg.pub.ts
96:102 (3%)
212:218 (3%)
view
7 x 2 src/diagnostic-channel-publishers/src
src/diagnostic-channel-publishers/src
mongodb.pub.ts
mongodb.pub.ts
72:82 (4%)
149:159 (4%)
view
6 x 2 src/diagnostic-channel-publishers/src
src/diagnostic-channel-publishers/src
mongodb.pub.ts
mongodb.pub.ts
36:42 (4%)
83:89 (4%)
view
6 x 2 src/diagnostic-channel-publishers/src
src/diagnostic-channel-publishers/src
mongodb-core.pub.ts
mongodb.pub.ts
26:32 (22%)
136:142 (4%)
view
6 x 2 src/diagnostic-channel-publishers/src
src/diagnostic-channel-publishers/src
pg.pub.ts
pg.pub.ts
140:148 (2%)
256:264 (2%)
view