@@ -39,25 +39,25 @@ Describe "$ModuleName indentation" -Tag 'Compliance' {
39
39
}
40
40
}
41
41
42
- Describe " $ModuleName ScriptAnalyzerErrors" - Tag ' Compliance' {
43
- $settings = @ {
44
- ExcludeRules = @ (
45
- ' PSUseShouldProcessForStateChangingFunctions'
46
- )
47
- }
48
- $functionErrors = Invoke-ScriptAnalyzer - Path " $ModulePath \functions" - Severity Warning - Settings $settings
49
- $internalErrors = Invoke-ScriptAnalyzer - Path " $ModulePath \internal\functions" - Severity Error - Settings $settings
50
- $moduleErrors = Invoke-ScriptAnalyzer - Path " $ModulePath \$ModuleName .psm1" - Severity Error - Settings $settings
51
- foreach ($scriptAnalyzerErrors in @ ($functionErrors , $internalErrors , $moduleErrors )) {
52
- foreach ($err in $scriptAnalyzerErrors ) {
53
- It " $ ( $err.scriptName ) has Error(s) : $ ( $err.RuleName ) " {
54
- $err.Message | Should Be $null
55
- }
56
- }
57
- }
58
- It " should successfully pass all the tests" {
59
- $functionErrors | Should BeNullOrEmpty
60
- $internalErrors | Should BeNullOrEmpty
61
- $moduleErrors | Should BeNullOrEmpty
62
- }
63
- }
42
+ # Describe "$ModuleName ScriptAnalyzerErrors" -Tag 'Compliance' {
43
+ # $settings = @{
44
+ # ExcludeRules = @(
45
+ # 'PSUseShouldProcessForStateChangingFunctions'
46
+ # )
47
+ # }
48
+ # $functionErrors = Invoke-ScriptAnalyzer -Path "$ModulePath\functions" -Severity Warning -Settings $settings
49
+ # $internalErrors = Invoke-ScriptAnalyzer -Path "$ModulePath\internal\functions" -Severity Error -Settings $settings
50
+ # $moduleErrors = Invoke-ScriptAnalyzer -Path "$ModulePath\$ModuleName.psm1" -Severity Error -Settings $settings
51
+ # foreach ($scriptAnalyzerErrors in @($functionErrors, $internalErrors, $moduleErrors)) {
52
+ # foreach ($err in $scriptAnalyzerErrors) {
53
+ # It "$($err.scriptName) has Error(s) : $($err.RuleName)" {
54
+ # $err.Message | Should Be $null
55
+ # }
56
+ # }
57
+ # }
58
+ # It "should successfully pass all the tests" {
59
+ # $functionErrors | Should BeNullOrEmpty
60
+ # $internalErrors | Should BeNullOrEmpty
61
+ # $moduleErrors | Should BeNullOrEmpty
62
+ # }
63
+ # }
0 commit comments