Skip to content

Commit 6727470

Browse files
mlocatibergmeister
andcommitted
[Minor] Ignore PSReviewUnusedParameter PSScriptAnalyzer warning
See See PowerShell/PSScriptAnalyzer#1472 Co-authored-by: Christoph Bergmeister [MVP] <[email protected]>
1 parent 3bbaa3b commit 6727470

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

PhpManager/public/Install-Php.ps1

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
Use this switch to enable installing PHP even if the destination directory already exists and it's not empty.
4848
#>
4949
[OutputType()]
50+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSReviewUnusedParameter', 'ThreadSafe', Justification = 'False positive as rule does not know that Where-Object operates within the same scope')] # See https://github.com/PowerShell/PSScriptAnalyzer/issues/1472
5051
param (
5152
[Parameter(Mandatory = $true, Position = 0, HelpMessage = 'The PHP version to be installed')]
5253
[ValidatePattern('^(master|(\d+\.\d+snapshot)|(\d+(\.\d+)?(\.\d+)?((alpha|beta|RC)\d*)?))$')]

0 commit comments

Comments
 (0)