You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Make sure each function takes either a Token or an Ast as a parameter
32
+
- Make sure each function takes either a Token array or an Ast as a parameter. The _Ast_ parameter name must end with 'Ast' and the _Token_ parameter name must end with 'Token'
33
33
34
34
```PowerShell
35
35
Param
@@ -41,6 +41,16 @@ Param
41
41
)
42
42
```
43
43
44
+
```PowerShell
45
+
Param
46
+
(
47
+
[Parameter(Mandatory = $true)]
48
+
[ValidateNotNullOrEmpty()]
49
+
[System.Management.Automation.Language.Token[]]
50
+
$testToken
51
+
)
52
+
```
53
+
44
54
- DiagnosticRecord should have four properties: Message, Extent, RuleName and Severity
0 commit comments