aws-samples / mwaa-dashboard
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
  • 38% duplication:
    • 714 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 272 duplicated lines
  • 36 duplicates
system38% (272 lines)
Duplication per Extension
yaml39% (161 lines)
py39% (111 lines)
Duplication per Component (primary)
misc63% (88 lines)
ROOT25% (73 lines)
functions/create_alarms41% (41 lines)
functions/delete_dashboard58% (17 lines)
functions/delete_alarms41% (15 lines)
functions/restore_dashboard86% (13 lines)
functions/backup_dashboard48% (13 lines)
functions/create_dashboard37% (12 lines)
functions0% (0 lines)
functions/seed_dynamodb0% (0 lines)
scripts0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 36 duplicates...
Size#FoldersFilesLinesCode
15 x 2 functions/create_alarms
functions/delete_dashboard
app.py
app.py
9:31 (15%)
10:32 (51%)
view
15 x 2 functions/create_alarms
functions/delete_alarms
app.py
app.py
9:31 (15%)
10:32 (41%)
view
15 x 2 functions/delete_alarms
functions/delete_dashboard
app.py
app.py
10:32 (41%)
10:32 (51%)
view
13 x 2 functions/backup_dashboard
functions/restore_dashboard
app.py
app.py
10:27 (48%)
9:26 (86%)
view
13 x 2 ROOT
ROOT
template.yaml
template.yaml
105:117 (4%)
128:140 (4%)
view
12 x 2 functions/create_dashboard
functions/delete_dashboard
app.py
app.py
23:40 (37%)
18:35 (41%)
view
11 x 2 ROOT
ROOT
template.yaml
template.yaml
63:73 (4%)
85:95 (4%)
view
10 x 2 functions/create_dashboard
functions/delete_alarms
app.py
app.py
23:37 (31%)
18:32 (27%)
view
10 x 2 functions/create_alarms
functions/create_dashboard
app.py
app.py
17:31 (10%)
23:37 (31%)
view
9 x 2 misc
misc
mwaa_cfn_dashboard.yaml
mwaa_cfn_dashboard.yaml
45:53 (6%)
69:77 (6%)
view
9 x 2 misc
misc
mwaa_cfn_dashboard.yaml
mwaa_cfn_dashboard.yaml
21:29 (6%)
93:101 (6%)
view
8 x 2 misc
misc
mwaa_cfn_dashboard.yaml
mwaa_cfn_dashboard.yaml
70:77 (5%)
94:101 (5%)
view
8 x 2 misc
misc
mwaa_cfn_dashboard.yaml
mwaa_cfn_dashboard.yaml
22:29 (5%)
70:77 (5%)
view
8 x 2 ROOT
ROOT
template.yaml
template.yaml
32:39 (2%)
147:154 (2%)
view
8 x 2 misc
misc
mwaa_cfn_dashboard.yaml
mwaa_cfn_dashboard.yaml
46:53 (5%)
94:101 (5%)
view
8 x 2 ROOT
ROOT
template.yaml
template.yaml
83:90 (2%)
105:112 (2%)
view
8 x 2 ROOT
ROOT
template.yaml
template.yaml
32:39 (2%)
56:63 (2%)
view
8 x 2 ROOT
ROOT
template.yaml
template.yaml
56:63 (2%)
147:154 (2%)
view
8 x 2 ROOT
ROOT
template.yaml
template.yaml
83:90 (2%)
128:135 (2%)
view
8 x 2 misc
misc
mwaa_cfn_dashboard.yaml
mwaa_cfn_dashboard.yaml
22:29 (5%)
46:53 (5%)
view