microsoft / AaronLocker
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
  • 12% duplication:
    • 5,733 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 713 duplicated lines
  • 113 duplicates
system12% (713 lines)
Duplication per Extension
ps112% (713 lines)
Duplication per Component (primary)
AaronLocker/CustomizationInputs47% (434 lines)
AaronLocker7% (166 lines)
AaronLocker/Support4% (113 lines)
AaronLocker/LocalConfiguration0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 113 duplicates...
Size#FoldersFilesLinesCode
19 x 2 AaronLocker
AaronLocker
Create-Policies.ps1
Get-AppLockerEvents.ps1
110:130 (8%)
240:260 (2%)
view
16 x 2 AaronLocker/CustomizationInputs
AaronLocker/CustomizationInputs
TrustedSigners.ps1
WDACTrustedSigners.ps1
116:132 (11%)
93:109 (14%)
view
14 x 2 AaronLocker/CustomizationInputs
AaronLocker/CustomizationInputs
TrustedSigners.ps1
WDACTrustedSigners.ps1
53:69 (9%)
72:88 (13%)
view
14 x 2 AaronLocker/CustomizationInputs
AaronLocker/CustomizationInputs
TrustedSigners.ps1
WDACTrustedSigners.ps1
135:148 (9%)
106:119 (13%)
view
12 x 2 AaronLocker/CustomizationInputs
AaronLocker/CustomizationInputs
TrustedSigners-MsvcMfc.ps1
WDACTrustedSigners-MsvcMfc.ps1
1:17 (6%)
1:17 (4%)
view
10 x 2 AaronLocker
AaronLocker
Compare-Policies.ps1
Compare-Policies.ps1
223:233 (3%)
274:284 (3%)
view
10 x 2 AaronLocker/Support
AaronLocker/Support
BuildRulesForFilesInWritableDirectori...
BuildRulesForFilesInWritableDirectori...
500:509 (2%)
518:527 (2%)
view
10 x 2 AaronLocker
AaronLocker
Compare-Policies.ps1
Scan-Directories.ps1
370:379 (3%)
527:536 (2%)
view
10 x 2 AaronLocker/Support
AaronLocker/Support
Create-Policies-AppLocker.ps1
Create-Policies-WDAC.ps1
590:599 (1%)
280:289 (2%)
view
10 x 2 AaronLocker
AaronLocker
Get-AppLockerEvents.ps1
Get-AppLockerEvents.ps1
846:855 (1%)
866:875 (1%)
view
9 x 2 AaronLocker
AaronLocker/Support
ExportPolicy-ToExcel.ps1
Get-AaronLockerTimestamp.ps1
51:60 (8%)
30:39 (16%)
view
9 x 2 AaronLocker/Support
AaronLocker/Support
Create-Policies-AppLocker.ps1
Create-Policies-AppLocker.ps1
533:541 (1%)
642:650 (1%)
view
7 x 2 AaronLocker/CustomizationInputs
AaronLocker/CustomizationInputs
WDACTrustedSigners-MsvcMfc.ps1
WDACTrustedSigners-MsvcMfc.ps1
245:252 (2%)
289:296 (2%)
view
7 x 2 AaronLocker/CustomizationInputs
AaronLocker/CustomizationInputs
WDACTrustedSigners-MsvcMfc.ps1
WDACTrustedSigners-MsvcMfc.ps1
223:230 (2%)
298:305 (2%)
view
7 x 2 AaronLocker/CustomizationInputs
AaronLocker/CustomizationInputs
WDACTrustedSigners-MsvcMfc.ps1
WDACTrustedSigners-MsvcMfc.ps1
214:221 (2%)
245:252 (2%)
view
7 x 2 AaronLocker/CustomizationInputs
AaronLocker/CustomizationInputs
WDACTrustedSigners-MsvcMfc.ps1
WDACTrustedSigners-MsvcMfc.ps1
223:230 (2%)
254:261 (2%)
view
7 x 2 AaronLocker/CustomizationInputs
AaronLocker/CustomizationInputs
WDACTrustedSigners-MsvcMfc.ps1
WDACTrustedSigners-MsvcMfc.ps1
166:173 (2%)
184:191 (2%)
view
7 x 2 AaronLocker/CustomizationInputs
AaronLocker/CustomizationInputs
WDACTrustedSigners-MsvcMfc.ps1
WDACTrustedSigners-MsvcMfc.ps1
90:97 (2%)
108:115 (2%)
view
7 x 2 AaronLocker
AaronLocker
Compare-Policies.ps1
Get-AppLockerEvents.ps1
368:374 (2%)
826:832 (<1%)
view
7 x 2 AaronLocker
AaronLocker
Get-AppLockerEvents.ps1
Get-AppLockerEvents.ps1
450:456 (<1%)
472:478 (<1%)
view