Skip to content

Commit 0d37d1f

Browse files
committed
Update the list order
1 parent d2057f1 commit 0d37d1f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

CustomizedRuleDocumentation.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,15 @@ Param
3131
$testAst
3232
)
3333
```
34-
5. DiagnosticRecord should have four properties: Message, Extent, RuleName and Severity
34+
35+
4. DiagnosticRecord should have four properties: Message, Extent, RuleName and Severity
3536
```
3637
$result = [Microsoft.Windows.Powershell.ScriptAnalyzer.Generic.DiagnosticRecord[]]@{"Message" = "This is a sample rule";
3738
"Extent" = $ast.Extent;
3839
"RuleName" = $PSCmdlet.MyInvocation.InvocationName;
3940
"Severity" = "Warning"}
4041
```
41-
6. Make sure you export the function(s) at the end of the script using Export-ModuleMember
42+
5. Make sure you export the function(s) at the end of the script using Export-ModuleMember
4243
```
4344
Export-ModuleMember -Function (FunctionName)
4445
```

0 commit comments

Comments
 (0)