mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-13 14:25:17 +03:00
fix(meta-remove): exclude Configuration.xml, ConfigDumpInfo.xml and Subsystems from both search loops
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -219,11 +219,13 @@ foreach ($ext in $searchExtensions) {
|
|||||||
}
|
}
|
||||||
if ($skip) { continue }
|
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)
|
$content = [System.IO.File]::ReadAllText($file.FullName, [System.Text.Encoding]::UTF8)
|
||||||
foreach ($pat in $searchPatterns) {
|
foreach ($pat in $searchPatterns) {
|
||||||
if ($content.Contains($pat)) {
|
if ($content.Contains($pat)) {
|
||||||
$relPath = $file.FullName.Substring($ConfigDir.Length + 1)
|
|
||||||
$references += @{ File = $relPath; Pattern = $pat }
|
$references += @{ File = $relPath; Pattern = $pat }
|
||||||
break # one match per file is enough
|
break # one match per file is enough
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user