aws-quickstart / quickstart-cmmc-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
  • 36% duplication:
    • 5,844 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 2,122 duplicated lines
  • 304 duplicates
system36% (2,122 lines)
Duplication per Extension
yaml40% (1,671 lines)
ps128% (451 lines)
Duplication per Component (primary)
templates/nested43% (844 lines)
templates37% (827 lines)
scripts38% (281 lines)
scripts/certificate-authority20% (170 lines)
functions/GPOPackagesFunction0% (0 lines)

Duplication Between Components (50+ lines)

G templates templates templates/nested templates/nested templates--templates/nested 1230

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 304 duplicates...
Size#FoldersFilesLinesCode
39 x 2 templates
templates/nested
ad-1-ssm.template.yaml
ad-ca.template.yaml
805:843 (2%)
664:702 (4%)
view
31 x 2 templates
templates/nested
ad-1-ssm.template.yaml
ad-ca.template.yaml
320:356 (1%)
115:145 (3%)
view
28 x 2 scripts/certificate-authority
scripts/certificate-authority
ConfigCAs-SSM.ps1
ConfigCAs-SSM.ps1
250:278 (4%)
675:703 (4%)
view
27 x 2 scripts
scripts
ConfigDC1-SSM.ps1
ConfigDC2-SSM.ps1
162:193 (10%)
150:181 (13%)
view
22 x 2 templates
templates/nested
ad-1-ssm.template.yaml
ad-ca.template.yaml
286:307 (1%)
70:91 (2%)
view
22 x 2 templates
templates/nested
ad-1-ssm.template.yaml
ad-ca.template.yaml
873:894 (1%)
755:776 (2%)
view
22 x 2 scripts
scripts
ConfigDC1-SSM.ps1
ConfigDC2-SSM.ps1
79:105 (8%)
61:86 (11%)
view
21 x 2 templates
templates/nested
ad-1-ssm.template.yaml
rdgw-domain.template.yaml
330:350 (1%)
148:168 (4%)
view
21 x 2 templates/nested
templates/nested
ad-ca.template.yaml
rdgw-domain.template.yaml
119:139 (2%)
148:168 (4%)
view
20 x 2 scripts
scripts
ConfigDC1-SSM.ps1
ConfigDC2-SSM.ps1
116:138 (7%)
86:108 (10%)
view
19 x 2 templates
templates/nested
ad-1-ssm.template.yaml
ad-ca.template.yaml
805:823 (1%)
755:773 (2%)
view
19 x 2 templates/nested
templates/nested
ad-ca.template.yaml
ad-ca.template.yaml
664:682 (2%)
755:773 (2%)
view
19 x 2 templates
templates/nested
ad-1-ssm.template.yaml
ad-ca.template.yaml
873:891 (1%)
664:682 (2%)
view
19 x 2 templates
templates
ad-1-ssm.template.yaml
ad-1-ssm.template.yaml
805:823 (1%)
873:891 (1%)
view
19 x 2 templates
templates/nested
ad-1-ssm.template.yaml
ad-ca.template.yaml
236:254 (1%)
37:55 (2%)
view
17 x 2 templates
templates
ad-1-ssm.template.yaml
ad-main-1-ssm.template.yaml
131:147 (1%)
180:196 (3%)
view
17 x 2 templates/nested
templates/nested
ad-ca.template.yaml
ad-ca.template.yaml
633:649 (1%)
723:739 (1%)
view
16 x 2 templates
templates/nested
ad-1-ssm.template.yaml
ad-ca.template.yaml
748:764 (<1%)
592:608 (1%)
view
15 x 2 templates/nested
templates/nested
ad-ca.template.yaml
ad-ca.template.yaml
512:526 (1%)
566:580 (1%)
view
15 x 2 templates/nested
templates/nested
ad-ca.template.yaml
ad-ca.template.yaml
328:342 (1%)
353:367 (1%)
view