From 4f4a9bdaad1d0e08f3acca23058f4f200b35f3f7 Mon Sep 17 00:00:00 2001 From: DKChan <524912269@qq.com> Date: Tue, 27 Oct 2026 06:12:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E7=A8=8B(=E9=97=B8=2009=20=E5=9F=BA?= =?UTF-8?q?=E7=BA=BF=E5=88=B7=E6=96=B0):=20=E7=94=A8=E6=88=B7=E8=A3=81?= =?UTF-8?q?=E4=B8=8D=E8=BF=98=E5=80=BA,=20=E4=B8=A4=E9=A1=B9=E6=81=B6?= =?UTF-8?q?=E5=8C=96=E7=99=BB=E8=AE=B0=E4=B8=BA=E7=8E=B0=E8=A1=8C=E5=80=BC?= =?UTF-8?q?=E2=80=94=E2=80=94gdstyle=20=E5=9F=BA=E7=BA=BF=E9=87=8D?= =?UTF-8?q?=E7=94=9F=E6=88=90(216=20=E6=9D=A1,=20=E6=B6=88=E5=A4=B1?= =?UTF-8?q?=E9=94=AE=2018=20=E6=9D=A1=E4=B8=BA=E5=8E=86=E5=8F=B2=E6=94=B9?= =?UTF-8?q?=E5=96=84=E9=94=AE=E6=B8=85=E8=B4=A6;=20=E6=81=B6=E5=8C=96=202?= =?UTF-8?q?=20=E6=9D=A1=20battle=5Forchestrator=20max-file-length=201314/l?= =?UTF-8?q?evel=5Fmap=5Fscreen=20max-class-variables=2022=20=E7=99=BB?= =?UTF-8?q?=E8=AE=B0=E4=B8=BA=E7=8E=B0=E8=A1=8C=E5=80=BC)=EF=BC=8B.gates/b?= =?UTF-8?q?aseline.json=20=E7=9A=84=2009=20=E6=9D=A1=E7=9B=AE=E6=94=B9=20e?= =?UTF-8?q?xit=3D0/fp=3Dgreen=E3=80=82=E8=BF=98=E5=80=BA=E5=BD=92=E8=BF=AD?= =?UTF-8?q?=E4=BB=A3=2040=20=E5=8D=A1=E2=91=A0(B1=E6=88=98=E6=96=97?= =?UTF-8?q?=E5=9F=9F=E6=8B=86=E4=BB=B6=E6=89=B9=E5=B7=B2=E5=86=99=E6=98=8E?= =?UTF-8?q?=20iter38=20=E8=A1=8C=E6=95=B0=E6=81=B6=E5=8C=96=E5=80=BA?= =?UTF-8?q?=E6=9C=AC=E6=89=B9=E8=BF=98=E5=80=BA=E5=BD=92=E7=BB=BF),=20?= =?UTF-8?q?=E8=AF=A5=E6=89=B9=E5=90=88=E5=9B=9E=E5=90=8E=E5=86=8D=E6=AC=A1?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E6=94=B6=E7=B4=A7=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game/tests/.gates/baseline.json | 6 +++--- tools/gdstyle_baseline.txt | 22 ++-------------------- 2 files changed, 5 insertions(+), 23 deletions(-) diff --git a/game/tests/.gates/baseline.json b/game/tests/.gates/baseline.json index 6ec1962d..42da5567 100644 --- a/game/tests/.gates/baseline.json +++ b/game/tests/.gates/baseline.json @@ -1,5 +1,5 @@ { - "note": "存量基线·首次自动生成;闸况变化时本脚本会判红,需人工确认后重生成;2026-10-17 人工确认重生成 06 条目:af94ce97 把 gdd_lint 记为存量红(01 篇 R5),该红已由 fcb8c3f8 补流程图消除,实测 --docs 域 06 exit=0,故基线改回绿。2026-10-18 新增闸件 08c 流水线闸(tools/pipeline_gate.py 注册上电),手工加入绿记录(roadmap 压缩批实测 --docs 域 exit=0),其余条目原样保留。2026-10-22 测试术语与层级重构批 A 改键:01 冒烟全量→01 系统测试(同一断言面 smoke_all.gd,运行器换 tools/run_system_test.py,过渡期判定口径不变)、02 单元套件→02 单元与集成测试(同一 run_all.gd 入口,名从实)、新增 00 冒烟测试(tools/run_smoke.py+game/tests/smoke_boot.tscn,重写后单跑实测 17 项 0 失败 PASS);09 静态扫描基线 exit=1(fp=4354b2aa72a7)系滞后红,本批单跑实测 exit=0(与 2026-10-22 16:20 回执一致),基线改回绿;其余条目原样保留。;2026-10-23 主会话记 07 doc_link 为存量红(用户令忽略:锻造工坊.md 死链的修复在另一会话未合入,合回闸豁免;外部修复合入后应重生成基线归绿);2026-10-26 用户特批带红合并(迭代 38 收口):09 静态扫描记存量红——gdstyle 恶化 2 条(battle_orchestrator.gd max-file-length 1314>1302=卡④头注必载内容、level_map_screen.gd max-class-variables 22>21=卡①缓存成员,均为卡片义务的记账漂移非缺陷,压缩还债经计算不可行),用户裁「不管引入的恶化直接提交、特许免测试重跑」;后续批次若触及两文件可顺带还债或经批准重生成基线归绿", + "note": "存量基线·首次自动生成;闸况变化时本脚本会判红,需人工确认后重生成;2026-10-17 人工确认重生成 06 条目:af94ce97 把 gdd_lint 记为存量红(01 篇 R5),该红已由 fcb8c3f8 补流程图消除,实测 --docs 域 06 exit=0,故基线改回绿。2026-10-18 新增闸件 08c 流水线闸(tools/pipeline_gate.py 注册上电),手工加入绿记录(roadmap 压缩批实测 --docs 域 exit=0),其余条目原样保留。2026-10-22 测试术语与层级重构批 A 改键:01 冒烟全量→01 系统测试(同一断言面 smoke_all.gd,运行器换 tools/run_system_test.py,过渡期判定口径不变)、02 单元套件→02 单元与集成测试(同一 run_all.gd 入口,名从实)、新增 00 冒烟测试(tools/run_smoke.py+game/tests/smoke_boot.tscn,重写后单跑实测 17 项 0 失败 PASS);09 静态扫描基线 exit=1(fp=4354b2aa72a7)系滞后红,本批单跑实测 exit=0(与 2026-10-22 16:20 回执一致),基线改回绿;其余条目原样保留。;2026-10-23 主会话记 07 doc_link 为存量红(用户令忽略:锻造工坊.md 死链的修复在另一会话未合入,合回闸豁免;外部修复合入后应重生成基线归绿);2026-10-26 用户特批带红合并(迭代 38 收口):09 静态扫描记存量红——gdstyle 恶化 2 条(battle_orchestrator.gd max-file-length 1314>1302=卡④头注必载内容、level_map_screen.gd max-class-variables 22>21=卡①缓存成员,均为卡片义务的记账漂移非缺陷,压缩还债经计算不可行),用户裁「不管引入的恶化直接提交、特许免测试重跑」;后续批次若触及两文件可顺带还债或经批准重生成基线归绿;两项恶化已按用户批准登记为现行值(gdstyle 基线重生成、09 归绿),迭代 40 卡① 还债后再次收紧", "gates": { "00 冒烟测试": { "exit": "0", @@ -46,8 +46,8 @@ "fp": "green" }, "09 静态扫描": { - "exit": "1", - "fp": "user-approved-iter38" + "exit": "0", + "fp": "green" }, "10 熵增闸": { "exit": "0", diff --git a/tools/gdstyle_baseline.txt b/tools/gdstyle_baseline.txt index 512e5f4e..8ede528b 100644 --- a/tools/gdstyle_baseline.txt +++ b/tools/gdstyle_baseline.txt @@ -7,21 +7,13 @@ # 重生成;新键数较旧基线少逾 10% 须加 --force 显式确认)。 game/core/action_economy.gd|quality/max-class-variables = 18 game/core/adventure_runner.gd|quality/max-branches|_apply_curio_pick = 10 -game/core/adventure_runner.gd|quality/max-branches|_draw_curio_candidates = 11 -game/core/adventure_runner.gd|quality/max-branches|resume_adventure = 11 game/core/adventure_runner.gd|quality/max-class-variables = 42 -game/core/adventure_runner.gd|quality/max-file-length = 1051 -game/core/adventure_runner.gd|quality/max-function-length|_draw_curio_candidates = 85 -game/core/adventure_runner.gd|quality/max-function-length|_start_current_level = 53 -game/core/adventure_runner.gd|quality/max-function-length|resume_adventure = 108 -game/core/adventure_runner.gd|quality/max-local-variables|_draw_curio_candidates = 26 -game/core/adventure_runner.gd|quality/max-local-variables|resume_adventure = 13 game/core/adventure_runner.gd|quality/max-public-methods = 23 game/core/adventure_runner.gd|quality/max-returns|_apply_curio_pick = 9 game/core/battle_orchestrator.gd|quality/max-branches|begin_battle = 17 game/core/battle_orchestrator.gd|quality/max-branches|use_treasure = 18 game/core/battle_orchestrator.gd|quality/max-class-variables = 50 -game/core/battle_orchestrator.gd|quality/max-file-length = 1302 +game/core/battle_orchestrator.gd|quality/max-file-length = 1314 game/core/battle_orchestrator.gd|quality/max-function-length|_place_variants = 52 game/core/battle_orchestrator.gd|quality/max-function-length|begin_battle = 141 game/core/battle_orchestrator.gd|quality/max-function-length|use_treasure = 62 @@ -141,9 +133,6 @@ game/data/schemas/reward_table.gd|quality/max-function-length|validate = 99 game/data/schemas/reward_table.gd|quality/max-local-variables|validate = 20 game/data/schemas/settlement_table.gd|quality/max-branches|validate = 16 game/data/schemas/settlement_table.gd|quality/max-class-variables = 18 -game/data/schemas/shop_table.gd|quality/max-branches|validate = 22 -game/data/schemas/shop_table.gd|quality/max-function-length|validate = 84 -game/data/schemas/shop_table.gd|quality/max-local-variables|validate = 20 game/data/schemas/skill_table.gd|quality/max-branches|validate = 29 game/data/schemas/skill_table.gd|quality/max-function-length|validate = 80 game/data/schemas/status_effect_table.gd|quality/max-branches|validate = 12 @@ -162,8 +151,6 @@ game/presentation/hud_presenter.gd|quality/max-parameters|_refresh_out_of_battle game/presentation/hud_presenter.gd|quality/max-parameters|refresh = 8 game/presentation/hud_presenter.gd|quality/max-parameters|tune_sim_report = 10 game/presentation/main.gd|quality/max-class-variables = 49 -game/presentation/main.gd|quality/max-file-length = 1507 -game/presentation/main.gd|quality/max-function-length|_build_ui = 189 game/presentation/playtest_logger.gd|quality/no-debug-print|debug 'print()' call found game/presentation/treasure_interact_controller.gd|quality/max-local-variables|inventory_projection = 11 game/presentation/treasure_interact_controller.gd|quality/max-parameters|_init = 7 @@ -192,15 +179,10 @@ game/presentation/views/board_cell_unit.gd|quality/max-local-variables|_draw = 1 game/presentation/views/board_fx_view.gd|quality/allocation-in-loop|object allocation '.new()' inside a loop game/presentation/views/board_view.gd|quality/allocation-in-loop|object allocation '.new()' inside a loop game/presentation/views/board_view.gd|quality/max-branches|_paint_cell = 24 -game/presentation/views/board_view.gd|quality/max-branches|_wall_tile_for = 14 game/presentation/views/board_view.gd|quality/max-class-variables = 45 -game/presentation/views/board_view.gd|quality/max-file-length = 1220 game/presentation/views/board_view.gd|quality/max-function-length|_paint_cell = 139 -game/presentation/views/board_view.gd|quality/max-local-variables|_digit_ink_mode = 12 game/presentation/views/board_view.gd|quality/max-local-variables|_paint_cell = 22 game/presentation/views/board_view.gd|quality/max-public-methods = 27 -game/presentation/views/board_view.gd|quality/max-returns|_wall_center_tile = 7 -game/presentation/views/board_view.gd|quality/max-returns|_wall_tile_for = 15 game/presentation/views/board_zone_view.gd|quality/max-function-length|_init = 59 game/presentation/views/camp_overlay_view.gd|quality/allocation-in-loop|object allocation '.new()' inside a loop game/presentation/views/camp_overlay_view.gd|quality/max-class-variables = 19 @@ -223,7 +205,7 @@ game/presentation/views/hero_info_panel_view.gd|quality/max-function-length|set_ game/presentation/views/hero_info_panel_view.gd|quality/max-local-variables|set_treasure_inventory = 13 game/presentation/views/legend_overlay.gd|quality/allocation-in-loop|object allocation '.new()' inside a loop game/presentation/views/level_map_screen.gd|quality/max-branches|_draw_graph = 9 -game/presentation/views/level_map_screen.gd|quality/max-class-variables = 21 +game/presentation/views/level_map_screen.gd|quality/max-class-variables = 22 game/presentation/views/level_map_screen.gd|quality/max-function-length|_draw_graph = 78 game/presentation/views/level_map_screen.gd|quality/max-function-length|_init = 135 game/presentation/views/level_map_screen.gd|quality/max-local-variables|_draw_graph = 27