awslabs / aws-service-catalog-factory
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
  • 41% duplication:
    • 7,899 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 3,240 duplicated lines
  • 495 duplicates
system41% (3,240 lines)
Duplication per Extension
py39% (2,365 lines)
yaml48% (875 lines)
Duplication per Component (primary)
servicecatalog_factory/template_builder66% (1,527 lines)
servicecatalog_factory35% (668 lines)
servicecatalog_factory/schema81% (363 lines)
servicecatalog_factory/commands15% (262 lines)
servicecatalog_factory/workflow19% (224 lines)
servicecatalog_factory/portfolios66% (176 lines)
servicecatalog_factory/templates26% (20 lines)
servicecatalog_factory/utilities0% (0 lines)
ROOT0% (0 lines)
landing-zone-add-on/aws-service-catalog-factory0% (0 lines)

Duplication Between Components (50+ lines)

G servicecatalog_factory servicecatalog_factory servicecatalog_factory/workflow servicecatalog_factory/workflow servicecatalog_factory--servicecatalog_factory/workflow 156 servicecatalog_factory/commands servicecatalog_factory/commands servicecatalog_factory--servicecatalog_factory/commands 120

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 495 duplicates...
Size#FoldersFilesLinesCode
67 x 2 servicecatalog_factory/template_builder/cdk
servicecatalog_factory/template_builder/cdk
product_template.py
product_template.py
124:190 (22%)
210:276 (22%)
view
64 x 2 servicecatalog_factory
servicecatalog_factory/workflow
tasks_unit_tests_helper.py
tasks_unit_tests_helper.py
30:105 (82%)
32:107 (81%)
view
54 x 2 servicecatalog_factory/schema
servicecatalog_factory/schema
schema-stacks.yaml
schema-workspaces.yaml
78:162 (46%)
66:150 (51%)
view
49 x 2 servicecatalog_factory/schema
servicecatalog_factory/schema
schema-apps.yaml
schema-workspaces.yaml
43:124 (57%)
71:150 (47%)
view
49 x 2 servicecatalog_factory/schema
servicecatalog_factory/schema
schema-apps.yaml
schema-stacks.yaml
43:124 (57%)
83:162 (42%)
view
48 x 2 servicecatalog_factory
servicecatalog_factory
cli.py
cli.py
146:196 (10%)
281:331 (10%)
view
47 x 2 servicecatalog_factory
servicecatalog_factory
cli.py
cli.py
75:121 (10%)
212:258 (10%)
view
36 x 2 servicecatalog_factory/template_builder
servicecatalog_factory/template_builder
builders.py
builders.py
686:721 (3%)
922:957 (3%)
view
33 x 2 servicecatalog_factory
servicecatalog_factory
servicecatalog-factory.template.yaml
servicecatalog-factory.template.yaml
107:139 (5%)
156:188 (5%)
view
33 x 2 servicecatalog_factory/template_builder
servicecatalog_factory/template_builder/cdk
builders.py
product_pipeline.py
178:210 (3%)
83:115 (7%)
view
30 x 2 servicecatalog_factory/portfolios
servicecatalog_factory/portfolios
example-quickstart.yaml
example-simple.yaml
3:33 (26%)
3:32 (100%)
view
29 x 2 servicecatalog_factory/template_builder
servicecatalog_factory/template_builder
shared_resources.py
shared_resources.py
201:229 (9%)
265:293 (9%)
view
29 x 2 servicecatalog_factory/template_builder
servicecatalog_factory/template_builder
shared_resources.py
shared_resources.py
148:176 (9%)
201:229 (9%)
view
29 x 2 servicecatalog_factory/template_builder
servicecatalog_factory/template_builder
shared_resources.py
shared_resources.py
148:176 (9%)
265:293 (9%)
view
26 x 2 servicecatalog_factory/template_builder
servicecatalog_factory/template_builder
builders.py
builders.py
718:743 (2%)
826:851 (2%)
view
26 x 2 servicecatalog_factory/template_builder
servicecatalog_factory/template_builder
builders.py
builders.py
588:613 (2%)
826:851 (2%)
view
26 x 2 servicecatalog_factory/template_builder
servicecatalog_factory/template_builder
builders.py
builders.py
588:613 (2%)
718:743 (2%)
view
24 x 2 servicecatalog_factory/portfolios
servicecatalog_factory/portfolios
example-simple-github.yaml
example-simple.yaml
3:26 (80%)
3:26 (80%)
view
24 x 2 servicecatalog_factory/portfolios
servicecatalog_factory/portfolios
example-quickstart.yaml
example-simple-github.yaml
3:27 (21%)
3:26 (80%)
view
23 x 2 servicecatalog_factory/schema
servicecatalog_factory/schema
schema-portfolios.yaml
schema-stacks.yaml
59:88 (16%)
36:65 (19%)
view
Duplicated Units
The list of top 5 duplicated units.
See data for all 5 unit duplicates...
Size#FoldersFilesLinesCode
11 x 2 servicecatalog_factory
servicecatalog_factory/workflow
tasks_unit_tests_helper.py
tasks_unit_tests_helper.py
0:0 
0:0 
view
9 x 2 servicecatalog_factory/template_builder
servicecatalog_factory/template_builder/cdk
base_template.py
product_pipeline.py
0:0 
0:0 
view
8 x 2 servicecatalog_factory/commands
servicecatalog_factory/commands
management.py
configuration_management.py
0:0 
0:0 
view
7 x 2 servicecatalog_factory
servicecatalog_factory/workflow
tasks_unit_tests_helper.py
tasks_unit_tests_helper.py
0:0 
0:0 
view
6 x 2 servicecatalog_factory/workflow/portfolios
servicecatalog_factory/workflow/portfolios
create_combined_product_pipeline_temp...
create_version_pipeline_template_task.py
0:0 
0:0 
view