Skip to content

Commit 8667d80

Browse files
authored
Add space between param and (. (#330)
Saw a PR on this in the PowerShellPracticeAndStyle project. PoshCode/PowerShellPracticeAndStyle#72 I agree.
1 parent bba2461 commit 8667d80

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

snippets/PowerShell.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -189,21 +189,21 @@
189189
"\t# TODO: Add parameters here",
190190
"\t# Make sure to use the same parameters for",
191191
"\t# Get-TargetResource, Set-TargetResource, and Test-TargetResource",
192-
"\tparam(",
192+
"\tparam (",
193193
"\t)",
194194
"}",
195195
"function Set-TargetResource {",
196196
"\t# TODO: Add parameters here",
197197
"\t# Make sure to use the same parameters for",
198198
"\t# Get-TargetResource, Set-TargetResource, and Test-TargetResource",
199-
"\tparam(",
199+
"\tparam (",
200200
"\t)",
201201
"}",
202202
"function Test-TargetResource {",
203203
"\t# TODO: Add parameters here",
204204
"\t# Make sure to use the same parameters for",
205205
"\t# Get-TargetResource, Set-TargetResource, and Test-TargetResource",
206-
"\tparam(",
206+
"\tparam (",
207207
"\t)",
208208
"}"
209209
],
@@ -350,7 +350,7 @@
350350
"\t ConfirmImpact='Medium')]",
351351
"\t[Alias()]",
352352
"\t[OutputType([String])]",
353-
"\tparam(",
353+
"\tparam (",
354354
"\t\t# Param1 help description",
355355
"\t\t[Parameter(Mandatory=$true, ",
356356
"\t\t Position=0,",
@@ -455,7 +455,7 @@
455455
"body": [
456456
"function ${name:Verb-Noun} {",
457457
"\t[CmdletBinding()]",
458-
"\tparam(",
458+
"\tparam (",
459459
"\t\t$0",
460460
"\t)",
461461
"\t",
@@ -596,18 +596,18 @@
596596
"prefix": "DSC resource provier (function-based)",
597597
"body": [
598598
"function Get-TargetResource {",
599-
"\tparam(",
599+
"\tparam (",
600600
"\t)",
601601
"\t",
602602
"\t$0",
603603
"}",
604604
"function Set-TargetResource {",
605-
"\tparam(",
605+
"\tparam (",
606606
"\t)",
607607
"\t",
608608
"}",
609609
"function Test-TargetResource {",
610-
"\tparam(",
610+
"\tparam (",
611611
"\t)",
612612
"\t",
613613
"}"
@@ -766,7 +766,7 @@
766766
"prefix": "workflow",
767767
"body": [
768768
"workflow ${name:Verb-Noun} {",
769-
"\tparam(",
769+
"\tparam (",
770770
"\t)",
771771
"\t",
772772
"\t$0",

0 commit comments

Comments
 (0)