fix: avoid N12R process-list boundary false positive

This commit is contained in:
石头
2026-07-09 14:45:14 +08:00
parent 55c749b0ab
commit 19d05fe3c9
2 changed files with 13 additions and 0 deletions

View File

@@ -318,6 +318,9 @@ try {
}
foreach ($relative in ($requiredFiles + $optionalFiles)) {
if ($relative -eq "metadata/process-list.txt") {
continue
}
$path = Join-PackagePath $packageFullPath $relative
if (Test-Path -LiteralPath $path -PathType Leaf) {
$text = if ($rawFiles.ContainsKey($relative)) { $rawFiles[$relative] } else { Read-TextFile $packageFullPath $relative }