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
- DscResource.Base
- A new private function `ConvertFrom-Reason` was added which takes an
array of `[Reason]` and coverts it to an array of `[System.Collections.Hashtable]`.
- The private function `ConvertTo-Reason` was renamed `Resolve-Reason`.
- `ResourceBase`
- The property `Reasons` in derived class-based resources is now expected
to use the type `[System.Collections.Hashtable[]]` (issue #4).
Returns an array of `[System.Collections.Hashtable]` with the converted
17
+
`[Reason[]]`.
18
+
19
+
.OUTPUTS
20
+
[System.Collections.Hashtable[]]
21
+
#>
22
+
functionConvertFrom-Reason
23
+
{
24
+
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseOutputTypeCorrectly','', Justification ='Because the rule does not understands that the command returns [System.Collections.Hashtable[]] when using , (comma) in the return statement')]
25
+
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('UseSyntacticallyCorrectExamples','', Justification ='Because the rule does not yet support parsing the code when the output type is not available. The ScriptAnalyzer rule UseSyntacticallyCorrectExamples will always error in the editor due to https://github.com/indented-automation/Indented.ScriptAnalyzerRules/issues/8.')]
Returns an array of `[Reason]` that contain all the properties not in desired
21
20
state and why a specific property is not in desired state.
22
21
23
22
.OUTPUTS
24
23
[Reason[]]
25
24
#>
26
-
functionConvertTo-Reason
25
+
functionResolve-Reason
27
26
{
28
27
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('UseSyntacticallyCorrectExamples','', Justification ='Because the rule does not yet support parsing the code when the output type is not available. The ScriptAnalyzer rule UseSyntacticallyCorrectExamples will always error in the editor due to https://github.com/indented-automation/Indented.ScriptAnalyzerRules/issues/8.')]
0 commit comments