diff --git a/.claude/skills/cfe-validate/SKILL.md b/.claude/skills/cfe-validate/SKILL.md index c4e013eb..00d1e3b9 100644 --- a/.claude/skills/cfe-validate/SKILL.md +++ b/.claude/skills/cfe-validate/SKILL.md @@ -42,7 +42,7 @@ powershell.exe -NoProfile -File .claude/skills/cfe-validate/scripts/cfe-validate | 8 | Каталоги объектов существуют | WARN | | 9 | Заимствованные объекты: ObjectBelonging=Adopted, ExtendedConfigurationObject UUID | ERROR/WARN | | 10 | Sub-items: Attribute, TabularSection (InternalInfo + вложенные), EnumValue, Form-ссылки | ERROR | -| 11 | Заимствованные формы: метаданные, Form.xml, Module.bsl, BaseForm (DataPath, TitleDataPath) | ERROR/WARN | +| 11 | Заимствованные формы: метаданные, Form.xml, Module.bsl, BaseForm version | ERROR/WARN | | 12 | Зависимости форм: CommonPicture, StyleItem (с whitelist платформенных), Enum DesignTimeRef | WARN | | 13 | TypeLink: human-readable Items.* DataPath (должны быть удалены) | WARN | diff --git a/.claude/skills/cfe-validate/scripts/cfe-validate.ps1 b/.claude/skills/cfe-validate/scripts/cfe-validate.ps1 index 0c665f84..62d8c498 100644 --- a/.claude/skills/cfe-validate/scripts/cfe-validate.ps1 +++ b/.claude/skills/cfe-validate/scripts/cfe-validate.ps1 @@ -801,17 +801,6 @@ foreach ($fi in $script:formList) { if ($formRawText -notmatch ']+version=') { Report-Warn "11. ${ctx}: missing version attribute" } - # Extract BaseForm content for DataPath/TitleDataPath checks (only inside BaseForm, not in extension elements) - $bfMatch = [regex]::Match($formRawText, '(?s)]*>(.+)') - if ($bfMatch.Success) { - $bfContent = $bfMatch.Groups[1].Value - if ($bfContent -match '[^<]+') { - Report-Warn "11. ${ctx}: found in BaseForm (should be stripped for borrowed forms)" - } - if ($bfContent -match '[^<]+') { - Report-Warn "11. ${ctx}: found in BaseForm (should be stripped)" - } - } $script:borrowedFormsWithTree += @{ Path = $formXmlFile; RawText = $formRawText; Context = $ctx diff --git a/.claude/skills/cfe-validate/scripts/cfe-validate.py b/.claude/skills/cfe-validate/scripts/cfe-validate.py index 4b85a9b8..fad924d0 100644 --- a/.claude/skills/cfe-validate/scripts/cfe-validate.py +++ b/.claude/skills/cfe-validate/scripts/cfe-validate.py @@ -764,14 +764,6 @@ def main(): if ']+version=', form_raw_text): r.warn(f'11. {ctx}: missing version attribute') - # Check DataPath/TitleDataPath only inside BaseForm (not in extension-added elements) - bf_match = re.search(r'(?s)]*>(.+)', form_raw_text) - if bf_match: - bf_content = bf_match.group(1) - if re.search(r'[^<]+', bf_content): - r.warn(f'11. {ctx}: found in BaseForm (should be stripped for borrowed forms)') - if re.search(r'[^<]+', bf_content): - r.warn(f'11. {ctx}: found in BaseForm (should be stripped)') borrowed_forms_with_tree.append({ 'Path': form_xml_file, 'RawText': form_raw_text, 'Context': ctx, })