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 1de9cfe commit d2d9ccaCopy full SHA for d2d9cca
Tests/Rules/ProvideCommentHelp.tests.ps1
@@ -36,6 +36,22 @@ Describe "ProvideCommentHelp" {
36
$violations[1].Extent.Text | Should Be "Comment"
37
}
38
39
+ It "should find violations in functions that are not exported" {
40
+ $def = @'
41
+function foo {
42
+}
43
+'@
44
+ $settings = @{
45
+ IncludeRules = @("PSProvideCommentHelp")
46
+ Rules = @{
47
+ PSProvideCommentHelp = @{
48
+ Enable = $true
49
+ ExportedOnly = $false
50
+ }
51
52
53
+ Invoke-ScriptAnalyzer -ScriptDefinition $def -Settings $settings | Get-Count | Should Be 1
54
55
It "should return a help snippet correction with 0 parameters" {
56
$def = @'
57
function foo {
0 commit comments