aws-quickstart / quickstart-microsoft-activedirectory
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
  • 68% duplication:
    • 17,060 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 11,681 duplicated lines
  • 1,558 duplicates
system68% (11,681 lines)
Duplication per Extension
yaml67% (6,654 lines)
ps161% (2,861 lines)
psm184% (2,002 lines)
psd1100% (164 lines)
Duplication per Component (primary)
templates81% (4,203 lines)
scripts/archive61% (2,861 lines)
templates/workshop44% (1,795 lines)
templates/workshop/Modules/Module-AD92% (1,089 lines)
scripts/Modules/Module-AD80% (1,077 lines)
templates/automationdocuments99% (656 lines)
ci0% (0 lines)

Duplication Between Components (50+ lines)

G templates templates templates/workshop templates/workshop templates--templates/workshop 3240 scripts/Modules/Module-AD scripts/Modules/Module-AD templates/workshop/Modules/Module-AD templates/workshop/Modules/Module-AD scripts/Modules/Module-AD--templates/workshop/Modules/Module-AD 2102 scripts/archive scripts/archive scripts/Modules/Module-AD--scripts/archive 354 scripts/archive--templates/workshop/Modules/Module-AD 402

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 1,558 duplicates...
Size#FoldersFilesLinesCode
220 x 2 scripts/Modules/Module-AD
templates/workshop/Modules/Module-AD
Module-AD.psm1
Module-AD.psm1
435:671 (17%)
433:669 (20%)
view
206 x 2 templates
templates
ad-2.template.yaml
ad-2.template.yaml
278:491 (15%)
654:867 (15%)
view
197 x 2 templates
templates
ad-1.template.yaml
ad-2.template.yaml
477:681 (16%)
665:869 (15%)
view
195 x 2 templates
templates
ad-1.template.yaml
ad-2.template.yaml
477:679 (16%)
289:491 (14%)
view
177 x 2 templates/automationdocuments
templates/automationdocuments
AWSQuickstart-ActiveDirectoryDS.yaml
AWSQuickstart-extendAD.yaml
1:184 (53%)
1:184 (53%)
view
163 x 2 scripts/Modules/Module-AD
templates/workshop/Modules/Module-AD
Module-AD.psm1
Module-AD.psm1
269:433 (12%)
268:432 (14%)
view
149 x 2 scripts/archive
scripts/archive
ConfigDC1-SSM.ps1
ExtendDC1.ps1
53:226 (56%)
43:216 (70%)
view
148 x 2 scripts/Modules/Module-AD
templates/workshop/Modules/Module-AD
Module-AD.psm1
Module-AD.psm1
978:1149 (11%)
974:1145 (13%)
view
110 x 2 templates
templates/workshop
mgmt-1.template.yaml
mgmt-1.template.yaml
430:542 (16%)
407:519 (17%)
view
107 x 2 templates
templates
ad-main-1.template.yaml
ad-main-3.template.yaml
315:421 (19%)
278:384 (21%)
view
88 x 2 scripts/archive
scripts/archive
Invoke-EnterpriseCaConfig.ps1
Invoke-TwoTierSubCaConfig.ps1
267:365 (23%)
110:208 (32%)
view
84 x 2 templates/automationdocuments
templates/automationdocuments
AWSQuickstart-ActiveDirectoryDS.yaml
AWSQuickstart-extendAD.yaml
260:350 (25%)
260:350 (25%)
view
82 x 2 scripts/Modules/Module-AD
templates/workshop/Modules/Module-AD
Module-AD.psd1
Module-AD.psd1
1:243 (100%)
1:243 (100%)
view
77 x 2 templates
templates
ad-2.template.yaml
mgmt-1.template.yaml
376:460 (5%)
385:469 (11%)
view
77 x 2 scripts/archive
scripts/archive
Invoke-EnterpriseCaConfig.ps1
Invoke-TwoTierSubCaInstall.ps1
65:149 (20%)
91:175 (25%)
view
77 x 2 templates
templates
ad-2.template.yaml
mgmt-1.template.yaml
752:836 (5%)
385:469 (11%)
view
77 x 2 templates
templates
ad-1.template.yaml
mgmt-1.template.yaml
564:648 (6%)
385:469 (11%)
view
75 x 2 templates
templates
ad-3.template.yaml
ad-main-3.template.yaml
139:213 (13%)
163:237 (15%)
view
74 x 2 templates
templates/workshop
mgmt-1.template.yaml
mgmt-1.template.yaml
198:271 (11%)
178:251 (11%)
view
73 x 2 templates
templates/workshop
mgmt-1.template.yaml
mgmt-1.template.yaml
351:428 (11%)
328:405 (11%)
view