awslabs / automated-account-configuration
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
  • 21% duplication:
    • 483 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 102 duplicated lines
  • 12 duplicates
system21% (102 lines)
Duplication per Extension
py21% (102 lines)
Duplication per Component (primary)
source23% (102 lines)
source/unit_tests0% (0 lines)
source/python0% (0 lines)
Longest Duplicates
The list of 12 longest duplicates.
See data for all 12 duplicates...
Size#FoldersFilesLinesCode
20 x 2 source
source
Create_RFC.py
Create_SR.py
26:59 (24%)
26:56 (33%)
view
14 x 2 source
source
Create_RFC.py
customer_managed_patch.py
39:59 (17%)
32:51 (18%)
view
14 x 2 source
source
Create_SR.py
customer_managed_patch.py
38:56 (23%)
32:51 (18%)
view
12 x 2 source
source
customer_managed_backup.py
customer_managed_patch.py
37:54 (14%)
35:51 (16%)
view
12 x 2 source
source
Create_RFC.py
customer_managed_backup.py
42:59 (14%)
37:54 (14%)
view
12 x 2 source
source
Create_SR.py
customer_managed_backup.py
41:56 (20%)
37:54 (14%)
view
8 x 2 source
source
Create_RFC.py
Create_SR.py
84:91 (9%)
80:88 (13%)
view
7 x 2 source
source
Create_RFC.py
Create_RFC.py
68:75 (8%)
110:118 (8%)
view
6 x 2 source
source
Create_SR.py
Main_Orchestrator.py
47:53 (10%)
54:60 (6%)
view
6 x 2 source
source
Main_Orchestrator.py
customer_managed_backup.py
54:60 (6%)
43:49 (7%)
view
6 x 2 source
source
Main_Orchestrator.py
customer_managed_patch.py
54:60 (6%)
41:47 (8%)
view
6 x 2 source
source
Create_RFC.py
Main_Orchestrator.py
48:54 (7%)
54:60 (6%)
view