File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -71,16 +71,18 @@ function Check-All {
71
71
72
72
# -------------------------------------
73
73
74
+ $thirdParty = Get-ChildItem $path \* - Include * .dll - Recurse | Where-Object {
75
+ ($_.Name -ilike " *Newtonsoft.Json*" ) -or `
76
+ ($_.Name -ilike " *AutoMapper*" ) -or `
77
+ ($_.Name -ilike " *YamlDotNet*" )
78
+ }
74
79
$exts = " *.ps1" , " *.psm1" , " *.ps1xml"
75
80
if ($Env: CheckPsd1 -ieq " True" ) {
76
81
$exts += " *.psd1"
77
82
}
78
- $files += (Get-ChildItem $path \* - Include $exts - Recurse)
79
- $files = $files | Where-Object { ($_.FullName -notlike " *Newtonsoft.Json*" ) -and `
80
- ($_.FullName -notlike " *AutoMapper*" ) -and `
81
- ($_.FullName -notlike " *Security.Cryptography*" ) -and `
83
+ $files += $thirdParty + (Get-ChildItem $path \* - Include $exts - Recurse)
84
+ $files = $files | Where-Object { ($_.FullName -notlike " *Security.Cryptography*" ) -and `
82
85
($_.FullName -notlike " *NLog*" ) -and `
83
- ($_.FullName -notlike " *YamlDotNet*" ) -and `
84
86
($_.FullName -notlike " *BouncyCastle.Crypto*" ) -and `
85
87
($_.FullName -notlike " *System.Management.Automation*" )}
86
88
Write-Host " Checking the authenticode signature of $ ( $files.Count ) files (*.dll, $ ( $exts -Join ' , ' ) )" - ForegroundColor Yellow
You can’t perform that action at this time.
0 commit comments