Skip to content

Commit

Permalink
Fix "Suppress a PSScriptAnalyzer rule on a parameter" snippet (#5034)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArieHein authored and andyleejordan committed Oct 8, 2024
1 parent 41b7e30 commit 7847bae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snippets/PowerShell.json
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@
"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",
"body": [
"[Diagnostics.CodeAnalysis.SuppressMessageAttribute(<#Category#>'${1:PSUseDeclaredVarsMoreThanAssignments}',",
"\t<#ParameterName#>'${0:${TM_SELECTED_TEXT:ParamName}}",
"\t<#ParameterName#>'${0:${TM_SELECTED_TEXT:ParamName}}',",
"\tJustification = '${0:${TM_SELECTED_TEXT:Reason for suppressing}}'",
")]"
]
Expand Down

0 comments on commit 7847bae

Please sign in to comment.