ci(codecov): add codecov.yml config and Socket badge#9
Conversation
- add codecov.yml (validated) — project (auto/1%) + patch (80%) targets, ignore test/dist/declaration files - add Socket.dev package-health badge to README - fix CI badge that pointed at the wrong repo (gh-please -> cli-toolkit)
📝 WalkthroughWalkthroughAdds a new Codecov configuration with project and patch coverage rules, comment settings, and ignore globs. Updates the README badge block to point CI at the new workflow and add Codecov and Socket badges. ChangesCoverage reporting and badges
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Code Review
This pull request updates the CI badge URL and adds a Socket badge to the README, and introduces a new Codecov configuration file. The review feedback correctly identifies that the ignore setting in codecov.yml is placed at the root level instead of under the codecov key, which would prevent Codecov from properly ignoring the specified test and build directories.
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@codecov.yml`:
- Around line 16-26: The YAML in codecov.yml is tripping the repo’s scalar-style
lint rules, so normalize the scalar formatting in the comment, layout, behavior,
require_changes, and ignore entries to match the project’s YAML
quoting/plain-scalar conventions. Update the codecov configuration block so the
scalar style is consistent throughout and passes yaml/quotes and
yaml/plain-scalar checks.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 5f8a3411-36c7-41fc-92d1-e7645b13ada2
📒 Files selected for processing (2)
README.mdcodecov.yml
There was a problem hiding this comment.
1 issue found across 2 files
Architecture diagram
sequenceDiagram
participant Dev as Developer
participant CI as GitHub Actions
participant CovAction as Codecov Action
participant CovAPI as Codecov API
participant Readme as GitHub README (static)
Dev->>CI: push/merge to branch
CI->>CI: run tests & collect coverage (bun --coverage)
CI->>CovAction: upload coverage/lcov.info
CovAction->>CovAPI: POST /upload (includes repo’s codecov.yml)
CovAPI->>CovAPI: evaluate thresholds (project: 1%, patch: 80%)
CovAPI-->>CI: coverage status (pass/fail)
Note over CovAPI,Readme: existing Codecov badge (unchanged)
Note over Readme: added Socket.dev badge (static URL)
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
Fix codecov.yml YAML scalar style to satisfy the repo's yaml/quotes and yaml/plain-scalar ESLint rules (single quotes / plain scalars), which were failing CI lint.
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |



Adds Codecov configuration and observability badges.
Changes
codecov.yml(new, validated via Codecov's validator →Valid!):projectstatus:autotarget with a1%threshold (avoids flaky failures on tiny dips)patchstatus:80%target for new/changed linesignore:test,dist,*.test.ts,*.d.ts(source-only coverage)pleaseai/gh-please); corrected topleaseai/cli-toolkitNotes
bunfig.tomlemitscoverage/lcov.infoandci.ymluploads it viacodecov/codecov-action@v5. This PR only adds the missing config file + badge.Summary by cubic
Add Codecov config to stabilize coverage checks: 80% patch target, 1% project threshold, ignoring
test,dist,**/*.test.ts, and**/*.d.ts; also fix YAML scalar style incodecov.ymlto satisfy repo lint.Update README to add the Socket.dev package-health badge and fix the CI badge to point to
pleaseai/cli-toolkit.Written for commit 739d78e. Summary will update on new commits.
Summary by CodeRabbit