Skip to content

Commit 9b83e03

Browse files
Suppress diagnostic warnings for variable scoping in Publish-PSModule function
1 parent 772d97f commit 9b83e03

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/Helpers/Helpers.psm1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,6 +1385,10 @@ function Publish-PSModule {
13851385
.EXAMPLE
13861386
Publish-PSModule -Name 'PSModule.FX' -APIKey $env:PSGALLERY_API_KEY
13871387
#>
1388+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute(
1389+
'PSUseDeclaredVarsMoreThanAssignments', '',
1390+
Justification = 'LogGroup - Scoping affects the variables line of sight.'
1391+
)]
13881392
[OutputType([void])]
13891393
[CmdletBinding()]
13901394
param(

0 commit comments

Comments
 (0)