Skip to content

Commit 5d2302c

Browse files
committed
fix unused variable complaint
1 parent bef6476 commit 5d2302c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/UrlQueryStringParser/Tests/ConvertFrom-UrlQueryString.tests.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ Import-Module $PSScriptRoot\.. -Force
33
Describe 'ConvertFrom-UrlQueryString functionality' -Tags Unit {
44
InModuleScope UrlQueryStringParser {
55
BeforeAll {
6+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute(
7+
<#Category#>'PSUseDeclaredVarsMoreThanAssignments',<#CheckId#>$null,
8+
Justification = 'Variable is used in It blocks, rule fails to detect'
9+
)]
610
$complexExampleQueryString = "?foo=bar&oogy&array=one&baz=quux&array=two&boogy&array=three&empty=&array=four&last"
711
}
812

0 commit comments

Comments
 (0)