Skip to content

Commit 8b3dfdf

Browse files
committed
Change block format
1 parent 7540bc2 commit 8b3dfdf

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

RuleDocumentation/AvoidDefaultTrueValueSwitchParameter.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,16 @@ Please change the default value of the switch parameter to be false.
1414
##Example
1515

1616
Wrong:
17+
1718
Param
1819
( …
1920
$Param1,
2021
[switch]
2122
$switch=$true
22-
2323
)
2424

2525
Correct:
26+
2627
Param
2728
( …
2829
$Param1,

RuleDocumentation/AvoidEmptyCatchBlock.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,17 @@ To fix a violation of this rule, using Write-Error or throw statements in catch
1111

1212
##Example
1313
Wrong:
14+
1415
try
1516
{
1617
1/0
1718
}
1819
catch [DivideByZeroException]
1920
{
20-
2121
}
2222

2323
Correct:
24+
2425
try
2526
{
2627
1/0

RuleDocumentation/AvoidGlobalVars.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ To fix a violation of this rule, please consider to use other scope modifiers.
1111

1212
##Example
1313
Wrong:
14-
$Global:var1 = $null
1514

15+
$Global:var1 = $null
1616
function NotGlobal ($var)
1717
{
1818
$a = $var + $var1
1919
}
2020

2121
Correct:
22-
$Global:var1 = $null
2322

23+
$Global:var1 = $null
2424
function NotGlobal ($var1,$var2)
2525
{
2626
$a = $var1 + $var2

0 commit comments

Comments
 (0)