Skip to content

Commit

Permalink
[Minor] Ignore PSReviewUnusedParameter PSScriptAnalyzer warning
Browse files Browse the repository at this point in the history
See See PowerShell/PSScriptAnalyzer#1472

Co-authored-by: Christoph Bergmeister [MVP] <c.bergmeister@gmail.com>
  • Loading branch information
mlocati and bergmeister committed May 6, 2020
1 parent 7656e62 commit ed71520
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions PhpManager/public/Install-Php.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
Use this switch to enable installing PHP even if the destination directory already exists and it's not empty.
#>
[OutputType()]
[System.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
param (
[Parameter(Mandatory = $true, Position = 0, HelpMessage = 'The PHP version to be installed')]
[ValidatePattern('^(master|(\d+\.\d+snapshot)|(\d+(\.\d+)?(\.\d+)?((alpha|beta|RC)\d*)?))$')]
Expand Down

0 comments on commit ed71520

Please sign in to comment.