File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
scripts/tests/PSScriptAnalyzer Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -60,14 +60,13 @@ BeforeDiscovery {
6060 }
6161 )
6262 }
63- Write-Warning " Discovered [$ ( $rules.Count ) ] rules"
64- $relativeSettingsFilePath = $SettingsFilePath.Replace ($PSScriptRoot , ' ' ).Trim(' \' ).Trim(' /' )
6563 }
6664}
6765
6866Describe " PSScriptAnalyzer" {
6967 BeforeAll {
70- LogGroup " Invoke-ScriptAnalyzer -Path [$Path ] -Settings [$relativeSettingsFilePath ]" {
68+ $relativeSettingsFilePath = $SettingsFilePath.Replace ($PSScriptRoot , ' ' ).Trim(' \' ).Trim(' /' )
69+ LogGroup " Invoke-ScriptAnalyzer -Path [$Path ] -Settings [$SettingsFilePath ]" {
7170 $testResults = Invoke-ScriptAnalyzer - Path $Path - Settings $SettingsFilePath - Recurse - Verbose
7271 Write-Warning " Found [$ ( $testResults.Count ) ] issues"
7372 }
You can’t perform that action at this time.
0 commit comments