aws-samples / simple-smart-mirror
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
  • <1% duplication:
    • 2,542 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 24 duplicated lines
  • 2 duplicates
system<1% (24 lines)
Duplication per Extension
py<1% (12 lines)
proto5% (12 lines)
Duplication per Component (primary)
smart-mirror-full/extracted/device/script/src/agt2% (12 lines)
smart-mirror-full/extracted/device/script/src/agt/ble1% (6 lines)
smart-mirror-full/extracted/device/script/src/agt/bt_classic1% (6 lines)
cloudformation-templates0% (0 lines)
smart-mirror-full/extracted0% (0 lines)
smart-mirror-full/extracted/device/script0% (0 lines)
smart-mirror-full/extracted/device/script/src0% (0 lines)
smart-mirror-full/extracted/lambda/custom0% (0 lines)
Longest Duplicates
The list of 2 longest duplicates.
See data for all 2 duplicates...
Size#FoldersFilesLinesCode
6 x 2 smart-mirror-full/extracted/device/script/src/agt
smart-mirror-full/extracted/device/script/src/agt
proto
messages.proto
messages.proto
16:21 (3%)
27:32 (3%)
view
6 x 2 smart-mirror-full/extrac...vice/script/src/agt/ble
smart-mirror-full/extrac...ript/src/agt/bt_classic
adapter.py
adapter.py
146:156 (1%)
89:99 (1%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
8 x 2 smart-mirror-full/extrac...vice/script/src/agt/ble
smart-mirror-full/extrac...ript/src/agt/bt_classic
adapter.py
adapter.py
0:0 
0:0 
view