Skip to content

Commit

Permalink
fixes #99 - adjusted for linux path ref
Browse files Browse the repository at this point in the history
  • Loading branch information
techthoughts2 committed Oct 12, 2024
1 parent c1aa775 commit 92ac9d3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Catesta.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,11 @@ Add-BuildTask Analyze {
Setting = 'PSScriptAnalyzerSettings.psd1'
}

$filesToAnalyze = Get-ChildItem -Path $script:ModuleSourcePath -Exclude "PSVault.Extension*" -Recurse -File | Where-Object { $_.FullName -notlike '*\Tests\*' }
$filesToAnalyze = Get-ChildItem -Path $script:ModuleSourcePath -Exclude "PSVault.Extension*" -Recurse -File |
Where-Object {
$directoryPath = [System.IO.Path]::GetDirectoryName($_.FullName)
$directoryPath -notmatch 'Tests'
}
$fileCount = $filesToAnalyze.Count

Write-Build White (' Performing Module ScriptAnalyzer checks for {0} files...' -f $fileCount)
Expand Down

0 comments on commit 92ac9d3

Please sign in to comment.