We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6129888 commit 8a02083Copy full SHA for 8a02083
Tests/Rules/AvoidUsingAlias.tests.ps1
@@ -40,6 +40,22 @@ gci -Path C:\
40
It "returns no violations" {
41
$noViolations.Count | Should Be 0
42
}
43
+
44
+ It "should return no violation for assignment statement-like command in dsc configuration" {
45
+ $target = @'
46
+Configuration MyDscConfiguration {
47
+ Node "NodeA" {
48
+ SomeResource MyResourceInstance {
49
+ Type = "Present"
50
+ Name = "RSAT"
51
+ }
52
53
+}
54
+'@
55
+ Invoke-ScriptAnalyzer -ScriptDefinition $target -IncludeRule $violationName | `
56
+ Get-Count | `
57
+ Should Be 0
58
59
60
61
Context "Settings file provides whitelist" {
0 commit comments