We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c1e248 commit 685e17eCopy full SHA for 685e17e
Tests/Rules/UseConsistentIndentation.tests.ps1
@@ -97,4 +97,20 @@ $param3
97
$violations.Count | Should Be 4
98
}
99
100
+
101
+ Context "When a sub-expression is provided" {
102
+ BeforeAll {
103
+ $def = @'
104
+function foo {
105
+ $x = $("abc")
106
+ $x
107
+}
108
+'@
109
+ $violations = Invoke-ScriptAnalyzer -ScriptDefinition $def -Settings $settings
110
+ }
111
112
+ It "Should not find a violations" {
113
+ $violations.Count | Should Be 0
114
115
116
0 commit comments