awslabs / thingpress
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
  • 15% duplication:
    • 648 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 99 duplicated lines
  • 12 duplicates
system15% (99 lines)
Duplication per Extension
yaml20% (67 lines)
py9% (32 lines)
Duplication per Component (primary)
ROOT20% (67 lines)
lambda-bulk-importer10% (18 lines)
lambda-supplier-providers/Microchip6% (7 lines)
lambda-supplier-providers/Infineon20% (7 lines)
lambda-product-providers0% (0 lines)
Longest Duplicates
The list of 12 longest duplicates.
See data for all 12 duplicates...
Size#FoldersFilesLinesCode
12 x 2 ROOT
ROOT
template.yaml
template.yaml
246:257 (3%)
264:275 (3%)
view
9 x 2 ROOT
ROOT
template.yaml
template.yaml
249:257 (2%)
302:311 (2%)
view
9 x 2 ROOT
ROOT
template.yaml
template.yaml
267:275 (2%)
302:311 (2%)
view
8 x 2 ROOT
ROOT
template.yaml
template.yaml
250:257 (2%)
286:293 (2%)
view
8 x 2 ROOT
ROOT
template.yaml
template.yaml
268:275 (2%)
286:293 (2%)
view
8 x 2 ROOT
ROOT
template.yaml
template.yaml
286:293 (2%)
304:311 (2%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
173:179 (2%)
185:191 (2%)
view
7 x 2 lambda-supplier-providers/Infineon
lambda-supplier-providers/Microchip
main.py
main.py
12:18 (20%)
29:35 (46%)
view
6 x 2 lambda-bulk-importer
lambda-bulk-importer
main.py
main.py
68:73 (3%)
96:101 (3%)
view
6 x 2 lambda-bulk-importer
lambda-bulk-importer
main.py
main.py
82:87 (3%)
96:101 (3%)
view
6 x 2 lambda-bulk-importer
lambda-bulk-importer
main.py
main.py
68:73 (3%)
82:87 (3%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
111:116 (1%)
160:165 (1%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
6 x 2 lambda-supplier-providers/Microchip
lambda-supplier-providers/Infineon
main.py
main.py
0:0 
0:0 
view