Skip to content

Commit 4adc55c

Browse files
🩹 [Patch]: Update logging in PSScriptAnalyzer tests to use relative settings file path
1 parent dd08ad8 commit 4adc55c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎scripts/tests/PSScriptAnalyzer/PSScriptAnalyzer.Tests.ps1‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ BeforeDiscovery {
6666
Describe "PSScriptAnalyzer" {
6767
BeforeAll {
6868
$relativeSettingsFilePath = $SettingsFilePath.Replace($PSScriptRoot, '').Trim('\').Trim('/')
69-
LogGroup "Invoke-ScriptAnalyzer -Path [$Path] -Settings [$SettingsFilePath]" {
69+
LogGroup "Invoke-ScriptAnalyzer -Path [$Path] -Settings [$relativeSettingsFilePath]" {
7070
$testResults = Invoke-ScriptAnalyzer -Path $Path -Settings $SettingsFilePath -Recurse -Verbose
7171
Write-Warning "Found [$($testResults.Count)] issues"
7272
}

0 commit comments

Comments
 (0)