-
Notifications
You must be signed in to change notification settings - Fork 1
/
HelpRules.psd1
72 lines (70 loc) · 1.75 KB
/
HelpRules.psd1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
@{
# HashTable of the keys that you want in your help comments
# If the test finds an element that does not appear in this list then the test will fail
# Possible key elements
# '.SYNOPSIS'
# '.DESCRIPTION'
# '.PARAMETER'
# '.EXAMPLE'
# '.INPUTS'
# '.OUTPUTS'
# '.NOTES'
# '.LINK'
# '.COMPONENT'
# '.ROLE'
# '.FUNCTIONALITY'
# '.FORWARDHELPTARGETNAME'
# '.FORWARDHELPCATEGORY'
# '.REMOTEHELPRUNSPACE'
# '.EXTERNALHELP'
# If a key is required then it must exist, and have between MinOccurrences and MaxOccurrences count
# The keys will be matched in the numerical sequence below
'1' = @{
Key = '.SYNOPSIS'
Required = $true
MinOccurrences = 1
MaxOccurrences = 1
}
'2' = @{
Key = '.DESCRIPTION'
Required = $true
MinOccurrences = 1
MaxOccurrences = 1
}
'3' = @{
Key = '.PARAMETER'
Required = $false
MinOccurrences = 0
MaxOccurrences = 99
}
'4' = @{
Key = '.EXAMPLE'
Required = $true
MinOccurrences = 1
MaxOccurrences = 100
}
'5' = @{
Key = '.INPUTS'
Required = $false
MinOccurrences = 0
MaxOccurrences = 0
}
'6' = @{
Key = '.OUTPUTS'
Required = $false
MinOccurrences = 0
MaxOccurrences = 0
}
'7' = @{
Key = '.NOTES'
Required = $false
MinOccurrences = 0
MaxOccurrences = 0
}
'8' = @{
Key = '.LINK'
Required = $false
MinOccurrences = 0
MaxOccurrences = 99
}
}