Commit graph

2 commits

Author SHA1 Message Date
Chris Parsons
1bb70a06c3 Fix lint errors in AutoRacingSimulator: no-non-null-assertion + no-console
All checks were successful
🚀 Deploy / 🧪 Test (pull_request) Successful in 3m2s
🚀 Deploy / ʦ🔍 Typecheck & Lint (pull_request) Successful in 1m21s
🚀 Deploy / 🐳 Build (pull_request) Has been skipped
🚀 Deploy / 🚀 Deploy (pull_request) Has been skipped
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-14 20:26:43 -07:00
Claude
06a011f0ed
Address code review findings in AutoRacingSimulator
Some checks failed
🚀 Deploy / 🧪 Test (pull_request) Successful in 3m32s
🚀 Deploy / ʦ🔍 Typecheck & Lint (pull_request) Failing after 50s
🚀 Deploy / 🐳 Build (pull_request) Has been skipped
🚀 Deploy / 🚀 Deploy (pull_request) Has been skipped
- Extract VOLATILITY_DECAY_FACTOR named constant (was magic 0.7) with docstring
- Replace two complementary allEvents.filter() calls with a single for-loop pass
- Move blendedProbs construction inside the in-season else branch (was built
  unconditionally even in pre-season where it was never read)
- Flatten nested totalCurrentPoints/pts conditions to a single ternary
- Emit a console.warn when participants are missing from standings data, so
  degraded blending is visible rather than silent
- Add AutoRacingSimulator test suite covering pre-season path, in-season
  standings-dominant blending, zero-points fallback, missing-standings warning,
  schedule_event exclusion, and column normalization

https://claude.ai/code/session_01FyG28zxsjSrgr8aKYuy6xY
2026-06-15 01:31:43 +00:00