microsoft / nav-arm-templates
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
  • 11% duplication:
    • 3,284 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 379 duplicated lines
  • 39 duplicates
system11% (379 lines)
Duplication per Extension
ps111% (298 lines)
aspx12% (81 lines)
Duplication per Component (primary)
ROOT10% (320 lines)
request30% (59 lines)
Saas0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 39 duplicates...
Size#FoldersFilesLinesCode
17 x 2 request
request
Backup.ps1
Restore.ps1
20:39 (39%)
16:35 (39%)
view
17 x 2 ROOT
ROOT
test-arm.ps1
test-arm.ps1
76:98 (7%)
229:250 (7%)
view
12 x 2 ROOT
ROOT
SetupDesktop.ps1
SetupNavContainer.ps1
1:13 (15%)
1:13 (2%)
view
12 x 2 ROOT
ROOT
SetupNavContainer.ps1
SetupNavContainer.ps1
454:465 (2%)
578:589 (2%)
view
12 x 2 ROOT
ROOT
Request.ps1
SetupDesktop.ps1
6:19 (21%)
2:15 (15%)
view
12 x 2 ROOT
ROOT
SetupDockerAgentVM.ps1
SetupVm.ps1
32:47 (16%)
290:305 (3%)
view
11 x 2 ROOT
ROOT
Request.ps1
SetupNavContainer.ps1
6:17 (19%)
2:13 (1%)
view
9 x 2 ROOT
ROOT
SetupNavContainer.ps1
SetupNavContainer.ps1
443:451 (1%)
568:576 (1%)
view
9 x 2 request
request
Backup.ps1
Restore.ps1
42:51 (20%)
38:47 (20%)
view
9 x 2 ROOT
ROOT
SetupStart.ps1
initialize.ps1
2:11 (6%)
70:79 (2%)
view
8 x 2 ROOT
ROOT
aspx
Default.aspx
status.aspx
389:397 (1%)
47:55 (9%)
view
8 x 2 ROOT
ROOT
aspx
Default.aspx
Default.aspx
160:167 (1%)
174:181 (1%)
view
8 x 2 ROOT
ROOT
aspx
Default.aspx
Default.aspx
174:181 (1%)
201:208 (1%)
view
8 x 2 ROOT
ROOT
SetupDesktop.ps1
SetupVm.ps1
6:15 (10%)
103:112 (2%)
view
8 x 2 ROOT
ROOT
aspx
Default.aspx
Default.aspx
146:153 (1%)
160:167 (1%)
view
8 x 2 ROOT
ROOT
aspx
Default.aspx
Default.aspx
146:153 (1%)
174:181 (1%)
view
8 x 2 ROOT
ROOT
additional-install.ps1
additional-installforbuildagent.ps1
8:17 (24%)
10:19 (42%)
view
8 x 2 ROOT
ROOT
aspx
Default.aspx
status.aspx
41:49 (1%)
12:19 (9%)
view
8 x 2 ROOT
ROOT
aspx
Default.aspx
Default.aspx
160:167 (1%)
201:208 (1%)
view
8 x 2 ROOT
ROOT
Request.ps1
SetupVm.ps1
10:19 (14%)
103:112 (2%)
view