aws-quickstart / connect-integration-here-location-suite
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
  • 53% duplication:
    • 800 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 431 duplicated lines
  • 54 duplicates
system53% (431 lines)
Duplication per Extension
yaml55% (273 lines)
py56% (158 lines)
Duplication per Component (primary)
templates55% (273 lines)
functions/source/here-integration-routing-test85% (46 lines)
functions/source/here-integration-geocoder-test86% (45 lines)
functions/source/here-integration-places-test86% (45 lines)
functions/source/here-integration-routing25% (8 lines)
functions/source/here-integration-places13% (7 lines)
functions/source/here-integration-geocoder18% (7 lines)
ci0% (0 lines)

Duplication Between Components (50+ lines)

G functions/source/here-integration-places-test functions/source/here-integration-places-test functions/source/here-integration-routing-test functions/source/here-integration-routing-test functions/source/here-integration-places-test--functions/source/here-integration-routing-test 76 functions/source/here-integration-geocoder-test functions/source/here-integration-geocoder-test functions/source/here-integration-geocoder-test--functions/source/here-integration-places-test 76 functions/source/here-integration-geocoder-test--functions/source/here-integration-routing-test 76

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 54 duplicates...
Size#FoldersFilesLinesCode
33 x 2 templates
templates
here-integration-geocoder.template.yaml
here-integration-places.template.yaml
5:37 (26%)
5:37 (26%)
view
33 x 2 templates
templates
here-integration-geocoder.template.yaml
here-integration-routing.template.yaml
5:37 (26%)
5:37 (26%)
view
33 x 2 templates
templates
here-integration-places.template.yaml
here-integration-routing.template.yaml
5:37 (26%)
5:37 (26%)
view
26 x 2 functions/source/here-integration-places-test
functions/source/here-integration-routing-test
cfnresponse.py
cfnresponse.py
11:44 (100%)
11:44 (100%)
view
26 x 2 functions/source/here-integration-geocoder-test
functions/source/here-integration-places-test
cfnresponse.py
cfnresponse.py
11:44 (100%)
11:44 (100%)
view
26 x 2 functions/source/here-integration-geocoder-test
functions/source/here-integration-routing-test
cfnresponse.py
cfnresponse.py
11:44 (100%)
11:44 (100%)
view
14 x 2 templates
templates
here-integration-geocoder.template.yaml
here-integration-routing.template.yaml
39:52 (11%)
39:52 (11%)
view
14 x 2 templates
templates
here-integration-routing.template.yaml
here-integration-routing.template.yaml
39:52 (11%)
78:91 (11%)
view
14 x 2 templates
templates
here-integration-geocoder.template.yaml
here-integration-places.template.yaml
78:91 (11%)
39:52 (11%)
view
14 x 2 templates
templates
here-integration-geocoder.template.yaml
here-integration-places.template.yaml
39:52 (11%)
39:52 (11%)
view
14 x 2 templates
templates
here-integration-geocoder.template.yaml
here-integration-geocoder.template.yaml
39:52 (11%)
78:91 (11%)
view
14 x 2 templates
templates
here-integration-geocoder.template.yaml
here-integration-routing.template.yaml
78:91 (11%)
78:91 (11%)
view
14 x 2 templates
templates
here-integration-places.template.yaml
here-integration-routing.template.yaml
78:91 (11%)
39:52 (11%)
view
14 x 2 templates
templates
here-integration-geocoder.template.yaml
here-integration-places.template.yaml
78:91 (11%)
78:91 (11%)
view
14 x 2 templates
templates
here-integration-geocoder.template.yaml
here-integration-places.template.yaml
39:52 (11%)
78:91 (11%)
view
14 x 2 templates
templates
here-integration-geocoder.template.yaml
here-integration-routing.template.yaml
78:91 (11%)
39:52 (11%)
view
14 x 2 templates
templates
here-integration-places.template.yaml
here-integration-places.template.yaml
39:52 (11%)
78:91 (11%)
view
14 x 2 templates
templates
here-integration-places.template.yaml
here-integration-routing.template.yaml
78:91 (11%)
78:91 (11%)
view
14 x 2 templates
templates
here-integration-places.template.yaml
here-integration-routing.template.yaml
39:52 (11%)
39:52 (11%)
view
14 x 2 templates
templates
here-integration-geocoder.template.yaml
here-integration-routing.template.yaml
39:52 (11%)
78:91 (11%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
23 x 3 functions/source/here-integration-routing-test
functions/source/here-integration-geocoder-test
functions/source/here-integration-places-test
cfnresponse.py
cfnresponse.py
cfnresponse.py
0:0 
0:0 
0:0 
view