From d7f012b307f6cfe28ebfbd1a91cf85f0aa679c15 Mon Sep 17 00:00:00 2001 From: Nick Shirokov Date: Mon, 16 Feb 2026 17:04:55 +0300 Subject: [PATCH] fix(meta-remove): exclude Configuration.xml, ConfigDumpInfo.xml and Subsystems from both search loops Co-Authored-By: Claude Opus 4.6 --- .claude/skills/meta-remove/scripts/meta-remove.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.claude/skills/meta-remove/scripts/meta-remove.ps1 b/.claude/skills/meta-remove/scripts/meta-remove.ps1 index 84ec96fd..10b683d6 100644 --- a/.claude/skills/meta-remove/scripts/meta-remove.ps1 +++ b/.claude/skills/meta-remove/scripts/meta-remove.ps1 @@ -219,11 +219,13 @@ foreach ($ext in $searchExtensions) { } if ($skip) { continue } } + # Skip auto-cleaned files (Configuration.xml, ConfigDumpInfo.xml, Subsystems) + $relPath = $file.FullName.Substring($ConfigDir.Length + 1) + if ($relPath -eq "Configuration.xml" -or $relPath -eq "ConfigDumpInfo.xml" -or $relPath.StartsWith("Subsystems")) { continue } $content = [System.IO.File]::ReadAllText($file.FullName, [System.Text.Encoding]::UTF8) foreach ($pat in $searchPatterns) { if ($content.Contains($pat)) { - $relPath = $file.FullName.Substring($ConfigDir.Length + 1) $references += @{ File = $relPath; Pattern = $pat } break # one match per file is enough }