aws-quickstart / quickstart-urbanio-iot-aas
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
  • 46% duplication:
    • 2,041 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 940 duplicated lines
  • 151 duplicates
system46% (940 lines)
Duplication per Extension
yaml60% (790 lines)
py20% (150 lines)
Duplication per Component (primary)
templates60% (790 lines)
functions/source/association-updater32% (51 lines)
functions/source/asset-model-converter13% (44 lines)
functions/source/s3-to-lifecycle-events-converter37% (29 lines)
functions/source/attributes-updater15% (17 lines)
functions/source/lifecycle-events-mapping-updater47% (9 lines)
functions/source/iot-core-to-sqs0% (0 lines)

Duplication Between Components (50+ lines)

G functions/source/asset-model-converter functions/source/asset-model-converter functions/source/association-updater functions/source/association-updater functions/source/asset-model-converter--functions/source/association-updater 88

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 151 duplicates...
Size#FoldersFilesLinesCode
32 x 2 templates
templates
main.template.yaml
main.template.yaml
796:827 (2%)
1089:1120 (2%)
view
32 x 2 templates
templates
main.template.yaml
main.template.yaml
606:637 (2%)
979:1010 (2%)
view
31 x 2 templates
templates
main.template.yaml
main.template.yaml
716:746 (2%)
797:827 (2%)
view
31 x 2 templates
templates
main.template.yaml
main.template.yaml
607:637 (2%)
716:746 (2%)
view
31 x 2 templates
templates
main.template.yaml
main.template.yaml
716:746 (2%)
980:1010 (2%)
view
31 x 2 templates
templates
main.template.yaml
main.template.yaml
607:637 (2%)
797:827 (2%)
view
31 x 2 templates
templates
main.template.yaml
main.template.yaml
980:1010 (2%)
1090:1120 (2%)
view
31 x 2 templates
templates
main.template.yaml
main.template.yaml
797:827 (2%)
980:1010 (2%)
view
31 x 2 templates
templates
main.template.yaml
main.template.yaml
716:746 (2%)
1090:1120 (2%)
view
31 x 2 templates
templates
main.template.yaml
main.template.yaml
607:637 (2%)
1090:1120 (2%)
view
27 x 2 templates
templates
main.template.yaml
main.template.yaml
639:665 (2%)
830:856 (2%)
view
26 x 2 templates
templates
main.template.yaml
main.template.yaml
928:953 (1%)
1038:1063 (1%)
view
25 x 2 templates
templates
main.template.yaml
main.template.yaml
856:880 (1%)
953:977 (1%)
view
25 x 2 templates
templates
main.template.yaml
main.template.yaml
830:854 (1%)
928:952 (1%)
view
25 x 2 templates
templates
main.template.yaml
main.template.yaml
639:663 (1%)
1038:1062 (1%)
view
25 x 2 templates
templates
main.template.yaml
main.template.yaml
830:854 (1%)
1038:1062 (1%)
view
25 x 2 templates
templates
main.template.yaml
main.template.yaml
639:663 (1%)
928:952 (1%)
view
25 x 2 templates
templates
main.template.yaml
main.template.yaml
667:691 (1%)
858:882 (1%)
view
24 x 2 templates
templates
main.template.yaml
main.template.yaml
955:978 (1%)
1065:1088 (1%)
view
24 x 2 templates
templates
main.template.yaml
main.template.yaml
581:604 (1%)
666:689 (1%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
8 x 2 functions/source/asset-model-converter
functions/source/association-updater
sqs.py
sqs.py
0:0 
0:0 
view