Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -223,3 +223,8 @@ DataTreeTimingBaselines.json
Docs/migration/working/
Build/Agent/comment-hygiene-report.json
.review/

# Working-tree-local NuGet feed for -LocalLibraries packs
.localfeed/
# Generated by build.ps1 -LocalLibraries; selects local library versions
Build/LocalLibraries.props
11 changes: 7 additions & 4 deletions Build/Agent/powershell-compat.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,14 @@ $ErrorActionPreference = 'Stop'
Import-Module (Join-Path $PSScriptRoot 'CommentHygiene.psm1') -Force

$repoRoot = (Resolve-Path (Join-Path $PSScriptRoot '../..')).Path
# Every PowerShell file under Build/Agent, so a new script is covered the day it
# lands rather than when someone remembers to name it here.
$targetFiles = @(Get-ChildItem -LiteralPath $PSScriptRoot -Recurse -File |
# Every PowerShell file under Build, not just Build/Agent: build.ps1 loads
# modules from there under Windows PowerShell 5.1 in CI.
$scanRoots = @($PSScriptRoot, (Join-Path $repoRoot 'Build'))
$targetFiles = @($scanRoots | ForEach-Object {
Get-ChildItem -LiteralPath $_ -Recurse -File -ErrorAction SilentlyContinue
} |
Where-Object { $_.Extension -eq '.ps1' -or $_.Extension -eq '.psm1' } |
ForEach-Object { $_.FullName } | Sort-Object)
ForEach-Object { $_.FullName } | Sort-Object -Unique)

$violations = New-Object System.Collections.ArrayList

Expand Down
343 changes: 343 additions & 0 deletions Build/LocalLibraries.Tests.ps1

Large diffs are not rendered by default.

Loading
Loading