aws-quickstart / quickstart-microsoft-sharepoint
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
  • 25% duplication:
    • 2,072 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 535 duplicated lines
  • 23 duplicates
system25% (535 lines)
Duplication per Extension
ps137% (439 lines)
yaml10% (96 lines)
Duplication per Component (primary)
scripts37% (439 lines)
templates10% (96 lines)
ci0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 23 duplicates...
Size#FoldersFilesLinesCode
90 x 2 scripts
scripts
SharePoint-Farm.ps1
SharePoint-SingleServer.ps1
146:240 (17%)
146:240 (17%)
view
30 x 2 scripts
scripts
SharePoint-Farm.ps1
SharePoint-SingleServer.ps1
1:32 (5%)
1:32 (5%)
view
27 x 2 scripts
scripts
SharePoint-Farm.ps1
SharePoint-SingleServer.ps1
46:75 (5%)
39:68 (5%)
view
18 x 2 scripts
scripts
SharePoint-Farm.ps1
SharePoint-SingleServer.ps1
83:103 (3%)
86:106 (3%)
view
18 x 2 scripts
scripts
SharePoint-Farm.ps1
SharePoint-SingleServer.ps1
522:540 (3%)
513:531 (3%)
view
12 x 2 templates
templates
sharepoint-master.template.yaml
sharepoint-master.template.yaml
239:250 (1%)
265:276 (1%)
view
12 x 2 templates
templates
sharepoint-master.template.yaml
sharepoint-master.template.yaml
513:524 (1%)
547:558 (1%)
view
9 x 2 templates
templates
sharepoint-master.template.yaml
sharepoint-master.template.yaml
821:829 (1%)
854:862 (1%)
view
9 x 2 templates
templates
sharepoint-master.template.yaml
sharepoint-master.template.yaml
734:742 (1%)
771:779 (1%)
view
8 x 2 scripts
scripts
SharePoint-Farm.ps1
SharePoint-SingleServer.ps1
136:144 (1%)
136:144 (1%)
view
8 x 2 scripts
scripts
SharePoint-Farm.ps1
SharePoint-SingleServer.ps1
345:353 (1%)
330:338 (1%)
view
8 x 2 scripts
scripts
SharePoint-Farm.ps1
SharePoint-SingleServer.ps1
432:441 (1%)
438:447 (1%)
view
7 x 2 scripts
scripts
SharePoint-Farm.ps1
SharePoint-SingleServer.ps1
106:112 (1%)
108:114 (1%)
view
6 x 2 scripts
scripts
SharePoint-Farm.ps1
SharePoint-SingleServer.ps1
216:221 (1%)
190:195 (1%)
view
6 x 2 scripts
scripts
SharePoint-Farm.ps1
SharePoint-SingleServer.ps1
75:81 (1%)
78:84 (1%)
view
6 x 2 scripts
scripts
SharePoint-Farm.ps1
SharePoint-SingleServer.ps1
223:228 (1%)
197:202 (1%)
view
6 x 2 scripts
scripts
SharePoint-Farm.ps1
SharePoint-SingleServer.ps1
190:195 (1%)
216:221 (1%)
view
6 x 2 scripts
scripts
SharePoint-Farm.ps1
SharePoint-Farm.ps1
190:195 (1%)
216:221 (1%)
view
6 x 2 scripts
scripts
SharePoint-Farm.ps1
SharePoint-SingleServer.ps1
197:202 (1%)
223:228 (1%)
view
6 x 2 scripts
scripts
SharePoint-Farm.ps1
SharePoint-Farm.ps1
197:202 (1%)
223:228 (1%)
view