Repository navigation
Enforce lint warnings as errors, drop dead bridge stubs, fix replay copy - #93
Conversation
- lint gains --error-on-warnings so warn-level Biome rules (e.g. noExcessiveCognitiveComplexity) actually block instead of printing and passing. - Remove bridge.js's showAd()/buy() Phase 3 stubs: zero callers ever, and buy()'s bare Promise.reject() would have been an unhandled rejection if called. - replayNote copy now says "不再重複獲得金幣" instead of "不再獲得金幣" — the old wording was flatly wrong since unfound bonus words still pay out on replay; only the one-time completion reward is withheld. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
PR Summary by QodoMake Biome warnings fatal; remove unused bridge stubs; fix replay note copy
AI Description
Diagram
High-Level Assessment
Files changed (8)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTo customize comments, go to the Qodo configuration screen, or learn more in the docs. |
Summary
lintnow runs with--error-on-warningsso warn-level Biome rules (noExcessiveCognitiveComplexity,noAccumulatingSpread,noAwaitInLoops,useTopLevelRegex,noProcessGlobal) actually block commits instead of printing and passing.bridge.js'sshowAd()/buy()Phase 3 stubs — zero callers for their whole life, andbuy()'s barePromise.reject()would have been an unhandled rejection if anything had called it. Interface shape for Phase 3 stays documented in the design doc.replayNotecopy from 「重玩不再獲得金幣」to 「重玩不再重複獲得金幣」— the old wording was inaccurate: unfound bonus words still pay out on replay (foundBonusWordstracks per-word, once ever), only the one-time completion reward is withheld.Test plan
bun run check(lint + test) passes locally, including the new--error-on-warningsflagprek run --all-filespasses via commit hook