Skip to content

Commit 7fe9649

Browse files
committed
chore(deps): Update PSScriptAnalyzer from v1.21.0 to v1.24.0
Rerun the formatter.
1 parent 03c6fac commit 7fe9649

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Invoke-Formatter.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function Import-ModuleLocally {
3737
Import-Module $importModule;
3838
}
3939

40-
Import-ModuleLocally -Name PSScriptAnalyzer -Version 1.21.0;
40+
Import-ModuleLocally -Name PSScriptAnalyzer -Version 1.24.0;
4141
Import-ModuleLocally -Name PowerShell-Beautifier -Version 1.2.5;
4242

4343
# Use Invoke-Formatter on all code

Invoke-Linter.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function Import-ModuleLocally {
3737
Import-Module $importModule;
3838
}
3939

40-
Import-ModuleLocally -Name PSScriptAnalyzer -Version 1.21.0;
40+
Import-ModuleLocally -Name PSScriptAnalyzer -Version 1.24.0;
4141

4242
# Use Invoke-Formatter on all code
4343
# Using -Exclude breaks the -Filter functionality so a regex using Where-Object is used instead

WebKitDev/Functions/Get-SourceCodeRelease.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function Get-SourceCodeRelease {
2727

2828
Write-Information -MessageData ('Downloading {0} source code from {1} ...' -f $name,$url) -InformationAction Continue;
2929
$extension = [System.IO.Path]::GetExtension($url);
30-
$fileName = [System.IO.Path]::GetTempFileName() | Rename-Item -NewName { $_ -replace '.tmp$',$extension } -Passthru;
30+
$fileName = [System.IO.Path]::GetTempFileName() | Rename-Item -NewName { $_ -replace '.tmp$',$extension } -PassThru;
3131
Invoke-WebFileRequest -url $url -DestinationPath $fileName;
3232
Write-Information -MessageData ('Downloaded {0} bytes' -f (Get-Item $fileName).Length) -InformationAction Continue;
3333

WebKitDev/Functions/Install-FromExe.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function Install-FromExe {
4747
Write-Information -MessageData ('{0} {1}' -f $installerPath,($options -join ' ')) -InformationAction Continue;
4848

4949
# According to https://stackoverflow.com/a/23797762 caching the handle is required to get ExitCode
50-
$process = Start-Process $installerPath -Passthru -ArgumentList $options;
50+
$process = Start-Process $installerPath -PassThru -ArgumentList $options;
5151
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUserDeclaredVarsMoreThanAssignments','',Scope = 'Function')]
5252
$handle = $process.Handle;
5353
$process.WaitForExit();

WebKitDev/Functions/Install-FromMsi.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function Install-FromMsi {
5050
Write-Information -MessageData ('msiexec {0}' -f ($msiArgs -join ' ')) -InformationAction Continue;
5151

5252
# According to https://stackoverflow.com/a/23797762 caching the handle is required to get ExitCode
53-
$process = Start-Process msiexec -Passthru -ArgumentList $msiArgs;
53+
$process = Start-Process msiexec -PassThru -ArgumentList $msiArgs;
5454
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUserDeclaredVarsMoreThanAssignments','',Scope = 'Function')]
5555
$handle = $process.Handle;
5656
$process.WaitForExit();

0 commit comments

Comments
 (0)