Skip to content

Commit 1d80441

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

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)