Skip to content

Commit 7847bae

Browse files
ArieHeinandyleejordan
authored andcommitted
Fix "Suppress a PSScriptAnalyzer rule on a parameter" snippet (#5034)
1 parent 41b7e30 commit 7847bae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snippets/PowerShell.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@
505505
"description": "Suppress a PSScriptAnalyzer rule on a parameter. More: https://docs.microsoft.com/en-us/powershell/utility-modules/psscriptanalyzer/overview?view=ps-modules#suppressing-rules",
506506
"body": [
507507
"[Diagnostics.CodeAnalysis.SuppressMessageAttribute(<#Category#>'${1:PSUseDeclaredVarsMoreThanAssignments}',",
508-
"\t<#ParameterName#>'${0:${TM_SELECTED_TEXT:ParamName}}",
508+
"\t<#ParameterName#>'${0:${TM_SELECTED_TEXT:ParamName}}',",
509509
"\tJustification = '${0:${TM_SELECTED_TEXT:Reason for suppressing}}'",
510510
")]"
511511
]

0 commit comments

Comments
 (0)