From 78a3a73c9662d7f15cdc2e50195ca5e70e7ef46a Mon Sep 17 00:00:00 2001 From: James Garriss <52328727+james-garriss@users.noreply.github.com> Date: Fri, 22 Nov 2024 08:17:10 -0500 Subject: [PATCH] Suppress PSSA global --- Testing/workflow/Invoke-PSSA.Tests.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Testing/workflow/Invoke-PSSA.Tests.ps1 b/Testing/workflow/Invoke-PSSA.Tests.ps1 index 7a7c8e1ef..8cd1df2b1 100644 --- a/Testing/workflow/Invoke-PSSA.Tests.ps1 +++ b/Testing/workflow/Invoke-PSSA.Tests.ps1 @@ -1,5 +1,9 @@ # The purpose of this test is to verify that PSSA is working. +# Suppress PSSA warnings here at the root of the test file. +[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidGlobalVars', '')] +param() + BeforeDiscovery { # Source the function . $PSScriptRoot/../../utils/workflow/Invoke-PSSA.ps1