Fight Command #2719
+2,157
−844
Draft
Fight Command #2719
CodeScene Delta Analysis / CodeScene Cloud Delta Analysis (draftbot-v5)
failed
Mar 1, 2025 in 39s
CodeScene PR Check
Quality Gate Failed
Code Health Improved
(1 files improve in Code Health)
Gates Failed
Prevent hotspot decline
(1 hotspot with Large Method, Excess Number of Function Arguments)
Enforce critical code health rules
(1 file with Bumpy Road Ahead)
Enforce advisory code health rules
(4 files with Large Method, Excess Number of Function Arguments, Complex Method, Overall Code Complexity, Primitive Obsession, String Heavy Function Arguments)
Gates Passed
1 Quality Gates Passed
See analysis details in CodeScene
Reason for failure
Prevent hotspot decline | Violations | Code Health Impact | |
---|---|---|---|
Player.ts | 2 rules in this hotspot | 7.21 → 6.98 | Suppress |
Enforce critical code health rules | Violations | Code Health Impact | |
---|---|---|---|
FightCommand.ts | 1 critical rule | 10.00 → 9.84 | Suppress |
Enforce advisory code health rules | Violations | Code Health Impact | |
---|---|---|---|
FightView.ts | 2 advisory rules | 10.00 → 8.85 | Suppress |
StringUtils.ts | 2 advisory rules | 9.69 → 9.10 | Suppress |
DraftbotHistoryCachedMessage.ts | 1 advisory rule | 10.00 → 9.66 | Suppress |
Player.ts | 2 advisory rules | 7.21 → 6.98 | Suppress |
View Improvements
File | Code Health Impact | Categories Improved |
---|---|---|
LogsReadRequests.ts | no change | String Heavy Function Arguments |
FightController.ts | no change | Complex Method |
eruptionAttack.ts | 9.69 → 10.00 | Excess Number of Function Arguments |
Absence of Expected Change Pattern
- DraftBot/Core/src/core/fights/actions/interfaces/players/ultimateAttack.ts is usually changed with: DraftBot/Core/src/core/fights/actions/interfaces/players/sabotageAttack.ts, DraftBot/Core/src/core/fights/actions/interfaces/players/chargingAttack.ts, DraftBot/Core/src/core/fights/actions/interfaces/players/powerfulAttack.ts, DraftBot/Core/src/core/fights/actions/interfaces/players/chargeChargingAttack.ts
Quality Gate Profile: Clean Code Collective
Want more control? Customize Code Health rules or catch issues early with our IDE extension and CLI tool.
Details
Loading