π improve(health): reduce cognitive complexity in health check handler#9
Conversation
Extract respond(), handleLiveness(), and handleReadiness() helpers from the nested closure to bring complexity from 18 to within the 15 limit. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Brian L. <brian@uniquepixels.xyz>
|
No actionable comments were generated in the recent review. π βΉοΈ Recent review infoβοΈ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: π Files selected for processing (1)
π Recent review detailsπ§° Additional context usedπ Path-based instructions (1)**βοΈ CodeRabbit configuration file
Files:
π Additional comments (4)
π WalkthroughWalkthroughRefactors health check handler to introduce internal helper functions ( Changes
Estimated code review effortπ― 2 (Simple) | β±οΈ ~10 minutes π₯ Pre-merge checks | β 3β Passed checks (3 passed)
βοΈ Tip: You can configure your own custom pre-merge checks in the settings. β¨ Finishing Touches
π§ͺ Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
## Release v0.1.1 ### π Improvements - reduce cognitive complexity in health check handler (#9) - detect all Biome finding severities as failures (#8) - revamp badge row (#21) - add Renovate commit format and squash strategy (#10) - consolidate test utilities (#6) ### π§Ί Chores - update undici to v7 - update install-action digest --- **After merging**, the tag-release job will automatically: - Tag this commit as `v0.1.1` - Create a GitHub Release with the changelog



Summary
respond(),handleLiveness(), andhandleReadiness()helpers from the nested closure increateHealthCheckHandlerTest plan
bun biome check src/health-check.tsβ zero findingsbun testβ 608 tests pass, 100% coverage on health-check.tsbun qa:tscβ passes cleanπ€ Generated with Claude Code
Summary by CodeRabbit