awslabs / aws-crt-nodejs
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:
    • 7,128 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 791 duplicated lines
  • 102 duplicates
system11% (791 lines)
Duplication per Extension
c11% (587 lines)
ts10% (168 lines)
h9% (20 lines)
yml21% (16 lines)
Duplication per Component (primary)
source11% (607 lines)
lib/browser14% (102 lines)
lib/native8% (66 lines)
continuous-delivery29% (16 lines)
codebuild0% (0 lines)
lib0% (0 lines)
lib/common0% (0 lines)
scripts0% (0 lines)

Duplication Between Components (50+ lines)

G lib/browser lib/browser lib/native lib/native lib/browser--lib/native 112

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 102 duplicates...
Size#FoldersFilesLinesCode
20 x 2 source
source
crypto.c
crypto.c
177:208 (6%)
291:322 (6%)
view
20 x 2 source
source
crypto.c
crypto.c
177:208 (6%)
234:265 (6%)
view
20 x 2 source
source
crypto.c
crypto.c
234:265 (6%)
291:322 (6%)
view
13 x 2 source
source
crypto.c
crypto.c
132:152 (3%)
447:467 (3%)
view
12 x 2 source
source
crypto.c
crypto.c
132:149 (3%)
187:204 (3%)
view
12 x 2 source
source
crypto.c
crypto.c
301:318 (3%)
447:464 (3%)
view
12 x 2 source
source
crypto.c
crypto.c
244:261 (3%)
447:464 (3%)
view
12 x 2 source
source
crypto.c
crypto.c
132:149 (3%)
244:261 (3%)
view
12 x 2 lib/browser
lib/native
mqtt.ts
mqtt.ts
20:31 (6%)
19:30 (6%)
view
12 x 2 source
source
crypto.c
crypto.c
132:149 (3%)
301:318 (3%)
view
12 x 2 source
source
crypto.c
crypto.c
187:204 (3%)
447:464 (3%)
view
11 x 2 source
source
crypto.c
crypto.c
305:322 (3%)
513:530 (3%)
view
11 x 2 source
source
crypto.c
crypto.c
248:265 (3%)
513:530 (3%)
view
11 x 2 source
source
crypto.c
crypto.c
191:208 (3%)
513:530 (3%)
view
10 x 2 lib/browser
lib/native
aws_iot.ts
aws_iot.ts
121:155 (14%)
226:254 (7%)
view
9 x 2 source
source
mqtt_client_connection.c
mqtt_client_connection.c
954:963 (<1%)
1293:1302 (<1%)
view
9 x 2 source
source
crypto.c
crypto.c
136:149 (2%)
513:526 (2%)
view
9 x 2 source
source
crypto.c
crypto.c
451:464 (2%)
513:526 (2%)
view
8 x 2 source
source
http_connection_manager.c
http_connection_manager.c
281:288 (2%)
329:336 (2%)
view
8 x 2 source
source
mqtt_client_connection.c
mqtt_client_connection.c
1274:1284 (<1%)
1607:1617 (<1%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
6 x 2 lib/native
lib/native
http.ts
http.ts
200:207 
209:215 
view
6 x 2 lib/native
lib/native
mqtt.ts
mqtt.ts
474:480 
490:496 
view