aws / aws-iot-device-sdk-js
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
  • 7% duplication:
    • 1,182 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 83 duplicated lines
  • 5 duplicates
system7% (83 lines)
Duplication per Extension
js7% (83 lines)
Duplication per Component (primary)
thing15% (55 lines)
jobs9% (15 lines)
device2% (13 lines)
ROOT0% (0 lines)
browser0% (0 lines)
common/lib0% (0 lines)
device/lib0% (0 lines)
continuous-delivery0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
15 x 2 jobs
thing
index.js
index.js
298:312 (9%)
315:329 (4%)
view
13 x 2 device
thing
index.js
index.js
812:824 (2%)
323:335 (3%)
view
9 x 2 thing
thing
index.js
index.js
575:590 (2%)
628:641 (2%)
view
8 x 2 thing
thing
index.js
index.js
478:487 (2%)
500:509 (2%)
view
7 x 2 device
jobs
index.js
index.js
812:818 (1%)
306:312 (4%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
6 x 2 thing
thing
index.js
index.js
685:691 
696:702 
view