aws-samples / cloudformation-studio-domain
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
  • 22% duplication:
    • 345 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 76 duplicated lines
  • 4 duplicates
system22% (76 lines)
Duplication per Extension
py28% (60 lines)
yaml11% (16 lines)
Duplication per Component (primary)
ROOT22% (76 lines)
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
17 x 2 ROOT
ROOT
UserProfile_function.py
domain_function.py
8:29 (19%)
8:29 (18%)
view
8 x 2 ROOT
ROOT
sagemaker_studio_template.yaml
sagemaker_studio_template.yaml
23:30 (5%)
74:81 (5%)
view
7 x 2 ROOT
ROOT
UserProfile_function.py
domain_function.py
91:97 (7%)
95:101 (7%)
view
6 x 2 ROOT
ROOT
UserProfile_function.py
domain_function.py
109:114 (6%)
112:117 (6%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
11 x 2 ROOT
ROOT
UserProfile_function.py
domain_function.py
0:0 
0:0 
view