iter(g255): 减少动效下归零全站悬停位移
This commit is contained in:
@@ -1712,12 +1712,13 @@ function cmdAuditMotion(args) {
|
||||
console.error(`audit:motion 失败:${err.message}`);
|
||||
process.exit(1);
|
||||
}
|
||||
const failing = result.gaps.length + result.shift.gaps.length; // 两类缺口都算失败:无限动画 + 悬停/按压位移
|
||||
if (args.includes('--json')) {
|
||||
console.log(JSON.stringify({ ok: result.gaps.length === 0, total: result.total, failing: result.gaps.length, entries: result.entries }, null, 2));
|
||||
console.log(JSON.stringify({ ok: failing === 0, total: result.total, failing, entries: result.entries, shift: result.shift }, null, 2));
|
||||
} else {
|
||||
console.log(formatMotionReport(result));
|
||||
}
|
||||
process.exit(result.gaps.length === 0 ? 0 : 1);
|
||||
process.exit(failing === 0 ? 0 : 1);
|
||||
}
|
||||
|
||||
/*** 迭代留痕校验:.ua/iterations.log 每行 JSON 字段与格式必须符合 ITERATION.md 规范 ***/
|
||||
|
||||
Reference in New Issue
Block a user