fix: code review issues #1-#9

1. cond.py: 删除重复裸字段代码块 (dedup bare field)
2. coverage.py: 移除_mark_perform无条件fallback (虚假覆盖)
3. pipeline_bridge.py: except:pass加日志记录异常
4. __init__.py: generate_data文档更新 (copybook_dirs等)
5. cond.py: is_field贪婪→非贪婪.*→.*?
6. coverage.py: 移除残留无条件Enter+Skip标记

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
NB-076
2026-06-25 10:20:18 +08:00
parent 94400d50d4
commit 874b16f48c
4 changed files with 16 additions and 8 deletions
+1 -1
View File
@@ -269,7 +269,7 @@ def evaluate_tree(tree, assignment):
def is_field(name, fields):
# Strip subscript: WS-ITEM-STATUS(WS-INDEX-VAR) -> WS-ITEM-STATUS
bare = re.sub(r'\s*\(.*\)\s*$', '', name).strip()
bare = re.sub(r'\s*\(.*?\)\s*$', '', name).strip()
for f in fields:
if f['name'] == bare.upper():
return True