Skip to content

Commit 19c40e8

Browse files
authored
Merge pull request #9825 from NuGet/scoban-devskim
Suppress devskim warnings
2 parents e043791 + 8610823 commit 19c40e8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tools/Setup-DevEnvironment.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
param([string]$SiteName = "NuGet Gallery", [string]$SitePhysicalPath, [string]$AppCmdPath)
22

3-
function Get-SiteFQDN() {return "localhost"}
3+
function Get-SiteFQDN() {return "localhost"} # DevSkim: ignore DS162092
44
function Get-SiteHttpHost() {return "$(Get-SiteFQDN):80"}
55
function Get-SiteHttpsHost() {return "$(Get-SiteFQDN):443"}
66

@@ -88,7 +88,7 @@ if(!(Test-Path $AppCmdPath)) {
8888

8989
# Enable access to the necessary URLs
9090
# S-1-1-0 is the unlocalized version for: user=Everyone
91-
Invoke-Netsh http add urlacl "url=http://$(Get-SiteHttpHost)/" "sddl=D:(A;;GX;;;S-1-1-0)"
91+
Invoke-Netsh http add urlacl "url=http://$(Get-SiteHttpHost)/" "sddl=D:(A;;GX;;;S-1-1-0)" # DevSkim: ignore DS137138
9292
Invoke-Netsh http add urlacl "url=https://$(Get-SiteHttpsHost)/" "sddl=D:(A;;GX;;;S-1-1-0)"
9393

9494
$SiteFullName = "$SiteName ($(Get-SiteFQDN))"
@@ -99,7 +99,7 @@ if($sites.Length -gt 0) {
9999
&$AppCmdPath delete site "$SiteFullName"
100100
}
101101

102-
&$AppCmdPath add site /name:"$SiteFullName" /bindings:"http://$(Get-SiteHttpHost),https://$(Get-SiteHttpsHost)" /physicalPath:$SitePhysicalPath
102+
&$AppCmdPath add site /name:"$SiteFullName" /bindings:"http://$(Get-SiteHttpHost),https://$(Get-SiteHttpsHost)" /physicalPath:$SitePhysicalPath # DevSkim: ignore DS137138
103103

104104
Write-Host "[DONE] Setting up IIS Express" -ForegroundColor Cyan
105105
Write-Host "[BEGIN] Setting SSL Certificate" -ForegroundColor Cyan

0 commit comments

Comments
 (0)