Skip to content

docs: add SonarQube, Codecov, and Socket badges to README#113

Merged
amondnet merged 1 commit into
mainfrom
docs/add-status-badges
Jul 1, 2026
Merged

docs: add SonarQube, Codecov, and Socket badges to README#113
amondnet merged 1 commit into
mainfrom
docs/add-status-badges

Conversation

@amondnet

@amondnet amondnet commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Add three status badges directly under the title in README.md:

  1. SonarQube / SonarCloud Quality Gate — shows the overall code quality gate status for the project.
  2. Codecov — shows the current test coverage percentage.
  3. Socket — shows the supply-chain security status of the project's dependencies.

Changes

  • README.md: three badge lines inserted immediately after the top-level heading.

Notes

  • The SonarCloud Quality Gate badge assumes the project key pleaseai_ask and will render correctly once the SonarCloud project is created and a scanner step is wired into CI. No scanner step has been added in this PR — the badge is a placeholder until that work is done.
  • The Codecov and Socket badges are live as soon as the corresponding GitHub integrations are active for the repository.

Test Plan

  • Badge images render in the GitHub UI on the repository home page
  • SonarCloud project pleaseai_ask is created and CI scanner step is added (follow-up)
  • Codecov integration is active for the repository
  • Socket integration is active for the repository

Summary by cubic

Added SonarCloud Quality Gate, Codecov coverage, and Socket dependency security badges under the README title for @pleaseai/ask. This makes code quality, test coverage, and supply-chain status visible on the repo home page.

Written for commit ed122b0. Summary will update on new commits.

Summary by CodeRabbit

  • Documentation
    • Added status badges to the project README, including quality, test coverage, and package security/package info indicators.

@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. type:docs Documentation improvements labels Jul 1, 2026
@coderabbitai

coderabbitai Bot commented Jul 1, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 1bb6a556-c2bc-4d5f-ac45-c6e893fb6941

📥 Commits

Reviewing files that changed from the base of the PR and between 715880b and ed122b0.

📒 Files selected for processing (1)
  • README.md

📝 Walkthrough

Walkthrough

Three status badges—SonarCloud Quality Gate, Codecov coverage, and Socket.dev npm package—were added to README.md directly below the main heading. No other content was changed.

Changes

README Badges

Layer / File(s) Summary
Add status badges
README.md
Inserted three badge images (SonarCloud Quality Gate, Codecov coverage, Socket.dev npm package) under the top heading.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the README change adding SonarCloud/SonarQube, Codecov, and Socket badges.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/add-status-badges

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@greptile-apps

greptile-apps Bot commented Jul 1, 2026

Copy link
Copy Markdown

Greptile Summary

Adds three status badges — SonarCloud Quality Gate, Codecov coverage, and Socket supply-chain security — immediately below the repository title in README.md.

  • The Codecov badge (codecov.io/gh/pleaseai/ask) and Socket badge (socket.dev/npm/package/@pleaseai/ask) reference valid targets; @pleaseai/ask matches the published npm package name in packages/cli/package.json.
  • The SonarCloud badge points to a project (pleaseai_ask) that does not yet exist and has no CI scanner step wired up, so it will display as broken on the public README until that follow-up work is completed.

Confidence Score: 4/5

Safe to merge — changes are limited to three badge lines in the README with no code or configuration impact.

The Codecov and Socket badges reference valid, live targets that match the repo and published package name. The SonarCloud badge is an acknowledged placeholder pointing at a project that does not yet exist, meaning it will display as broken on the public README until a follow-up CI step is completed.

README.md — specifically the SonarCloud badge, which will render in a broken state until the SonarCloud project and CI scanner are set up.

Important Files Changed

Filename Overview
README.md Adds three status badges (SonarCloud, Codecov, Socket) after the top-level heading. The Codecov and Socket badges reference valid live targets; the SonarCloud badge references a project that doesn't exist yet and will render as broken until CI is wired up.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    README["README.md\n(public repo home page)"]
    SC["SonarCloud Badge\nproject: pleaseai_ask\n❌ Project not yet created"]
    CC["Codecov Badge\ngh/pleaseai/ask branch/main\n✅ Live when integration active"]
    SK["Socket Badge\nnpm: @pleaseai/ask\n✅ Live when integration active"]

    README --> SC
    README --> CC
    README --> SK

    SC -->|"Renders broken until"| SCFIX["SonarCloud project created\n+ CI scanner added"]
    CC -->|"Renders once"| CCFIX["Codecov GitHub integration active"]
    SK -->|"Renders once"| SKFIX["Socket GitHub integration active"]
Loading
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
    README["README.md\n(public repo home page)"]
    SC["SonarCloud Badge\nproject: pleaseai_ask\n❌ Project not yet created"]
    CC["Codecov Badge\ngh/pleaseai/ask branch/main\n✅ Live when integration active"]
    SK["Socket Badge\nnpm: @pleaseai/ask\n✅ Live when integration active"]

    README --> SC
    README --> CC
    README --> SK

    SC -->|"Renders broken until"| SCFIX["SonarCloud project created\n+ CI scanner added"]
    CC -->|"Renders once"| CCFIX["Codecov GitHub integration active"]
    SK -->|"Renders once"| SKFIX["Socket GitHub integration active"]
Loading

Fix All in Claude Code

Prompt To Fix All With AI
Fix the following 1 code review issue. Work through them one at a time, proposing concise fixes.

---

### Issue 1 of 1
README.md:3
**Placeholder SonarCloud badge will render as broken on the public README**

The SonarCloud project `pleaseai_ask` does not yet exist (explicitly noted in the PR description), so this badge will display a "Not Found" or error state on the repository home page for every visitor until the project is created and a scanner step is wired into CI. Consider either adding the scanner setup as part of this PR, or deferring the badge until that work is complete to avoid a visibly broken status indicator on the main README.

Reviews (1): Last reviewed commit: "docs: add SonarQube, Codecov, and Socket..." | Re-trigger Greptile

Comment thread README.md
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying ask with  Cloudflare Pages  Cloudflare Pages

Latest commit: ed122b0
Status: ✅  Deploy successful!
Preview URL: https://220c344c.ask-6im.pages.dev
Branch Preview URL: https://docs-add-status-badges.ask-6im.pages.dev

View logs

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Auto-approved: README-only change adding three status badges (SonarCloud, Codecov, Socket). Extremely low risk.

Re-trigger cubic

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying ask-registry with  Cloudflare Pages  Cloudflare Pages

Latest commit: ed122b0
Status: ✅  Deploy successful!
Preview URL: https://64de9a25.ask-registry.pages.dev
Branch Preview URL: https://docs-add-status-badges.ask-registry.pages.dev

View logs

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@amondnet amondnet self-assigned this Jul 1, 2026
@amondnet amondnet merged commit 3237fde into main Jul 1, 2026
11 checks passed
@amondnet amondnet deleted the docs/add-status-badges branch July 1, 2026 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files. type:docs Documentation improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant