Skip to content

Commit

Permalink
Update PowerShell.json
Browse files Browse the repository at this point in the history
fix suppress-message-rule-parameter snippet
  • Loading branch information
ArieHein authored Sep 7, 2024
1 parent efd6fd5 commit fd178ef
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 fd178ef

Please sign in to comment.