Skip to content

Commit f71cad7

Browse files
authored
Fix missing space in AvoidPositionalParameter test asset (#1573)
1 parent c78f5a6 commit f71cad7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Rules/AvoidPositionalParametersNoViolations.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Get-ChildItem -Path "Tests"
33
Clear-Host
44
Split-Path -Path "Random" -leaf
55
Get-Process | Where-Object {$_.handles -gt 200}
6-
get-service-computername localhost | where {($_.status -eq "Running") -and ($_.CanStop -eq $true)}
6+
get-service -computername localhost | where {($_.status -eq "Running") -and ($_.CanStop -eq $true)}
77
1, 2, $null, 4 | ForEach-Object {"Hello"}
88
& "$env:Windir\System32\Calc.exe" Parameter1 Parameter2
99

@@ -22,4 +22,4 @@ Write-Output "I don't want to use positional parameters"
2222
Split-Path "RandomPath" -Leaf
2323
Get-Process | ForEach-Object {Write-Host $_.name -foregroundcolor cyan}
2424

25-
$srvc = Get-WmiObject Win32_Service -ComputerName $computername -Filter "name=""$service""" -Credential $credential
25+
$srvc = Get-WmiObject Win32_Service -ComputerName $computername -Filter "name=""$service""" -Credential $credential

0 commit comments

Comments
 (0)