Skip to content

feat(query): CodeClimate and badge CI output formats#172

Merged
SutuSebastian merged 10 commits into
mainfrom
feat/ci-output-formats
Jun 5, 2026
Merged

feat(query): CodeClimate and badge CI output formats#172
SutuSebastian merged 10 commits into
mainfrom
feat/ci-output-formats

Conversation

@SutuSebastian

@SutuSebastian SutuSebastian commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add --format codeclimate for GitLab Code Quality JSON (flat minor severity, stable fingerprints; lines.begin defaults to 1 without line_start).
  • Add --format badge with markdown default (codemap: N issues / codemap: clean) and --badge-style json for codemap-badge/v1.
  • Wire CLI, MCP query / query_recipe, and HTTP tool dispatch; lift to architecture.md, glossary.md, README, and agent-content. Plan deleted per Rule 3.

Test plan

  • bun test src/application/output-formatters.test.ts src/application/tool-handlers.test.ts src/cli/cmd-query.test.ts src/application/http-server.test.ts src/application/mcp-server.test.ts
  • bun run typecheck
  • bun src/index.ts query --recipe boundary-violations --format codeclimate
  • bun src/index.ts query --recipe boundary-violations --format badge
  • bun src/index.ts query --recipe boundary-violations --format badge --badge-style json

GitLab Code Quality ingestion and README/CI issue-count summaries are output modes on existing recipe rows — flat minor severity and codemap-badge/v1 per plan F.7/F.8.
@coderabbitai

coderabbitai Bot commented Jun 5, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@SutuSebastian, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 13 minutes and 11 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 6bef3ed9-197e-4f8f-bffa-bd9a005a380a

📥 Commits

Reviewing files that changed from the base of the PR and between e74410c and c9e08af.

📒 Files selected for processing (21)
  • .changeset/ci-output-formats.md
  • README.md
  • docs/architecture.md
  • docs/glossary.md
  • docs/plans/ci-output-formats.md
  • docs/roadmap.md
  • src/application/http-server.test.ts
  • src/application/http-server.ts
  • src/application/mcp-server.test.ts
  • src/application/mcp-server.ts
  • src/application/output-formatters.test.ts
  • src/application/output-formatters.ts
  • src/application/tool-handlers.test.ts
  • src/application/tool-handlers.ts
  • src/cli/aliases.ts
  • src/cli/cmd-query.test.ts
  • src/cli/cmd-query.ts
  • src/cli/main.ts
  • templates/agent-content/mcp-instructions.md
  • templates/agent-content/skill/10-recipes-context.md
  • templates/recipes/boundary-violations.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/ci-output-formats

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.

❤️ Share

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

@changeset-bot

changeset-bot Bot commented Jun 5, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c9e08af

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@stainless-code/codemap Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Hoist noLocatableFindingsWarning for CLI/MCP/HTTP; extend consumer surfaces (README, agent-content, MCP descriptions); add HTTP/MCP/formatter tests; reject badge_style without format=badge on all transports.
Sync architecture/glossary ToolResult and HTTP Content-Type; extend agent-content and alias help; remove shipped roadmap item; mark plan shipped pending merge.
File-level recipe rows (e.g. boundary-violations) default begin to 1 when line_start is absent; clarify README format comment.
Distinct same-file boundary violations no longer collide under GitLab dedup; document codeclimate on boundary-violations recipe.
Lift lives in architecture.md, glossary.md, README, and agent-content; roadmap item already removed.
Fingerprint hashes use the same line as location.lines.begin (default 1).
Add MCP/CLI/handler regression tests for warnings, combo guards, and happy paths.
@SutuSebastian SutuSebastian merged commit cf7df2f into main Jun 5, 2026
11 checks passed
@SutuSebastian SutuSebastian deleted the feat/ci-output-formats branch June 5, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant