From 44f74fced5853d9a0ad43ee556d26530ab6ff2b6 Mon Sep 17 00:00:00 2001 From: Aaron Parker Date: Sun, 18 Feb 2024 20:31:44 +1100 Subject: [PATCH] Fix PSScriptAnalyzer issues --- Evergreen/Apps/Get-AdobeDigitalEditions.ps1 | 1 + Evergreen/Apps/Get-CitrixShareFile.ps1 | 1 - Evergreen/Apps/Get-ClarivateEndnote.ps1 | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Evergreen/Apps/Get-AdobeDigitalEditions.ps1 b/Evergreen/Apps/Get-AdobeDigitalEditions.ps1 index be782e19..58f3c92e 100644 --- a/Evergreen/Apps/Get-AdobeDigitalEditions.ps1 +++ b/Evergreen/Apps/Get-AdobeDigitalEditions.ps1 @@ -8,6 +8,7 @@ Function Get-AdobeDigitalEditions { E-mail: jms@du.se #> [OutputType([System.Management.Automation.PSObject])] + [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSUseSingularNouns", "", Justification="Product name is a plural")] [CmdletBinding(SupportsShouldProcess = $False)] param ( [Parameter(Mandatory = $False, Position = 0)] diff --git a/Evergreen/Apps/Get-CitrixShareFile.ps1 b/Evergreen/Apps/Get-CitrixShareFile.ps1 index 3acf3344..2f86530c 100644 --- a/Evergreen/Apps/Get-CitrixShareFile.ps1 +++ b/Evergreen/Apps/Get-CitrixShareFile.ps1 @@ -5,7 +5,6 @@ .NOTES Author: Tschuegy - Twitter: #> [OutputType([System.Management.Automation.PSObject])] [CmdletBinding(SupportsShouldProcess = $false)] diff --git a/Evergreen/Apps/Get-ClarivateEndnote.ps1 b/Evergreen/Apps/Get-ClarivateEndnote.ps1 index 7c3b18f0..0d1f7df5 100644 --- a/Evergreen/Apps/Get-ClarivateEndnote.ps1 +++ b/Evergreen/Apps/Get-ClarivateEndnote.ps1 @@ -22,7 +22,7 @@ function Get-ClarivateEndNote { Write-Verbose -Message "$($MyInvocation.MyCommand): Download URL: $($res.Get.Download.Uri.$Release)" # Query the EndNote update API - $UpdateFeed = Invoke-EvergreenRestMethod -Uri $res.Get.Update.Uri.($Release) + $UpdateFeed = Invoke-EvergreenRestMethod -Uri $res.Get.Update.Uri.($Release) if ($null -ne $UpdateFeed) { # Sort the updates to find the latest