Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test
  • Loading branch information
MariusStorhaug committed Apr 13, 2024
commit 8d5833c5162f529caa6523f9927419541e02bed1
4 changes: 3 additions & 1 deletion scripts/tests/PSModule/SourceCode.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ Describe 'PSModule - SourceCode tests' {
$scriptFiles | ForEach-Object {
$fileContent = Get-Content -Path $_.FullName -Raw
if ($fileContent -match '\$env:NUMBER_OF_PROCESSORS') {
$issues += " - $($_.FullName): Use [System.Environment]::ProcessorCount instead of $env:NUMBER_OF_PROCESSORS"
$issues += " - $($_.FullName)"
#Get linenumber of the match
Write-Verbose ($matches | Out-String) -Verbose
}
}
$issues -join [Environment]::NewLine |
Expand Down