aws-samples / aws-cdk-service-catalog-pipeline
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
  • 14% duplication:
    • 383 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 56 duplicated lines
  • 5 duplicates
system14% (56 lines)
Duplication per Extension
py21% (56 lines)
Duplication per Component (primary)
cdk_pipelines31% (32 lines)
cdk_service_catalog19% (24 lines)
ROOT0% (0 lines)
products/ecs0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
12 x 2 cdk_service_catalog
cdk_service_catalog
cdk_service_catalog_ecs_stack.py
cdk_service_catalog_storage_stack.py
40:57 (17%)
37:55 (22%)
view
7 x 2 cdk_pipelines
cdk_pipelines
__init__.py
cdk_pipelines.py
6:12 (14%)
7:13 (13%)
view
6 x 2 cdk_pipelines
cdk_pipelines
cdk_pipelines.py
cdk_pipelines.py
54:59 (11%)
64:69 (11%)
view
6 x 2 cdk_pipelines
cdk_pipelines
__init__.py
cdk_pipelines.py
61:66 (12%)
64:69 (11%)
view
6 x 2 cdk_pipelines
cdk_pipelines
__init__.py
cdk_pipelines.py
61:66 (12%)
54:59 (11%)
view