aws-quickstart / quickstart-qumulo-studio-q
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
  • 30% duplication:
    • 3,761 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,145 duplicated lines
  • 141 duplicates
system30% (1,145 lines)
Duplication per Extension
yaml29% (825 lines)
ps132% (320 lines)
Duplication per Component (primary)
templates53% (630 lines)
templates/cfn-init32% (320 lines)
templates/cfn12% (195 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 141 duplicates...
Size#FoldersFilesLinesCode
61 x 2 templates
templates
qs-studioq-main-new-vpc.template.yaml
qs-studioq-main.template.yaml
112:177 (14%)
118:183 (8%)
view
35 x 2 templates
templates
qs-studioq-main-new-vpc.template.yaml
qs-studioq-main.template.yaml
265:303 (8%)
272:310 (5%)
view
30 x 2 templates/cfn-init
templates/cfn-init
add-svcaccount.ps1
change-administrator-password.ps1
1:32 (68%)
1:32 (90%)
view
25 x 2 templates
templates
qs-studioq-main-new-vpc.template.yaml
qs-studioq-main.template.yaml
28:55 (6%)
29:56 (3%)
view
21 x 2 templates/cfn-init
templates/cfn-init
rename-computer.ps1
workstationrename.ps1
1:22 (77%)
1:22 (84%)
view
20 x 2 templates
templates
qs-studioq-main-new-vpc.template.yaml
qs-studioq-main.template.yaml
201:222 (4%)
204:225 (2%)
view
18 x 2 templates/cfn
templates/cfn
gfx-workstation.cft.yaml
gfx-workstation.cft.yaml
113:130 (3%)
337:354 (3%)
view
18 x 2 templates
templates
qs-studioq-main-new-vpc.template.yaml
qs-studioq-main.template.yaml
381:400 (4%)
397:416 (2%)
view
17 x 2 templates/cfn-init
templates/cfn-init
add-admin-user.ps1
add-svcaccount.ps1
1:18 (60%)
1:18 (38%)
view
17 x 2 templates/cfn-init
templates/cfn-init
create-arecords.ps1
wait-dc-services-ready.ps1
1:18 (29%)
1:18 (22%)
view
17 x 2 templates/cfn-init
templates/cfn-init
create-user.ps1
rename-computer.ps1
1:18 (40%)
1:18 (62%)
view
17 x 2 templates/cfn-init
templates/cfn-init
configure-member-network.ps1
workstationrename.ps1
1:18 (36%)
1:18 (68%)
view
17 x 2 templates/cfn-init
templates/cfn-init
join-domain.ps1
wait-dc-services-ready.ps1
1:18 (44%)
1:18 (22%)
view
17 x 2 templates/cfn-init
templates/cfn-init
add-admin-user.ps1
wait-dc-services-ready.ps1
1:18 (60%)
1:18 (22%)
view
17 x 2 templates/cfn-init
templates/cfn-init
configure-dc-network.ps1
workstationrename.ps1
1:18 (36%)
1:18 (68%)
view
17 x 2 templates/cfn-init
templates/cfn-init
dc-promo.ps1
wait-dc-services-ready.ps1
1:18 (45%)
1:18 (22%)
view
17 x 2 templates/cfn-init
templates/cfn-init
create-arecords.ps1
rename-computer.ps1
1:18 (29%)
1:18 (62%)
view
17 x 2 templates/cfn-init
templates/cfn-init
create-user.ps1
dc-promo.ps1
1:18 (40%)
1:18 (45%)
view
17 x 2 templates/cfn-init
templates/cfn-init
add-svcaccount.ps1
join-domain.ps1
1:18 (38%)
1:18 (44%)
view
17 x 2 templates/cfn-init
templates/cfn-init
change-administrator-password.ps1
configure-member-network.ps1
1:18 (51%)
1:18 (36%)
view