Repository navigation
fix(hotfix): 抽方法降 BattleRules.Simulate 认知复杂度 - #538
Conversation
消除 Sonar S3776(AaElsTY1oSiIXNEp0lag):Simulate 认知复杂度 23 超阈值 15。 沿用主方法 + 私有 helper 约定(C141/C142/C181):单回合战力求解(平局重掷 与护栏奇偶交替)抽为 ResolveRoundPower,rolls 取数兜底抽为 NextRoll, 拆分后 Simulate=4、helper=8/1;rolls 消费顺序、尝试计数、护栏语义与 回合记录零变更,现有 BattleRulesTests 全量通过。 Linear: GFX-886
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to The refactor preserves the observed battle outcomes and is ready to merge after normal checks. Pre-merge checks |
|
|



Linear: GFX-886
Summary by CodeRabbit