Skip to content

chore: add SonarQube fix command and Bun config - #56

Merged
amondnet merged 3 commits into
mainfrom
chore/add-sonarqube-command-and-bun-config
Feb 11, 2026
Merged

amondnet merged 3 commits into
mainfrom
chore/add-sonarqube-command-and-bun-config

Conversation

@amondnet

@amondnet amondnet commented Feb 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add Claude Code command for SonarQube issue fixing (.claude/commands/sonarqube/fix.md)
  • Add bunfig.toml to disable automatic dotenv loading

Test plan

  • Verify SonarQube fix command loads correctly in Claude Code
  • Verify bun run respects dotenv = false setting

Summary by cubic

Adds a Claude Code command to fix SonarQube/SonarCloud issues with a task-driven workflow and MCP tool integration, and disables Bun’s automatic dotenv loading. This streamlines PR cleanups and keeps environment loading explicit.

  • New Features
    • SonarQube/SonarCloud fix command (.claude/commands/sonarqube/fix.md): auto PR detection with interactive fallback, severity/type filters, rule-aware fixes, quality gate prioritization, TaskList dependencies, test verification, and conventional commit; skips risky changes and security hotspots.
    • bunfig.toml with dotenv = false to stop Bun from auto-loading .env files; environments must be loaded explicitly.

Written for commit 9072a57. Summary will update on new commits.

Add Claude Code command for SonarQube issue fixing and
bunfig.toml to disable automatic dotenv loading.
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @amondnet, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances development workflow by introducing an automated SonarQube issue-fixing command for Claude Code, streamlining the process of addressing code quality and security concerns. Concurrently, it configures Bun to prevent automatic dotenv loading, ensuring more predictable environment variable handling during script execution.

Highlights

  • SonarQube Fix Command: Introduced a new Claude Code command (.claude/commands/sonarqube/fix.md) designed to automatically detect and fix SonarQube/SonarCloud issues, including parsing arguments, searching for issues, reviewing rules, and registering tasks for resolution.
  • Bun Configuration: Added a bunfig.toml file to explicitly disable automatic dotenv loading for bun run commands, preventing unintended environment variable conflicts.
Changelog
  • .claude/commands/sonarqube/fix.md
    • Added a new command definition for fixing SonarQube issues.
    • Included detailed instructions for argument parsing, PR detection, issue searching, and task registration.
    • Provided guidelines for fixing different issue types (CODE_SMELL, BUG, VULNERABILITY) and handling SECURITY_HOTSPOTs.
    • Listed usage examples and MCP tool references for SonarQube interactions.
  • bunfig.toml
    • Added a new configuration file.
    • Set "dotenv = false" under the "[run]" section to disable automatic dotenv loading.
Activity
  • The pull request was opened by amondnet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

@amondnet
amondnet enabled auto-merge (squash) February 11, 2026 18:25

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request introduces a new Claude Code command for automatically fixing SonarQube issues and adds a bunfig.toml file to configure Bun's behavior. The new command definition in .claude/commands/sonarqube/fix.md is well-detailed, but it includes some text in Korean. My feedback focuses on translating these parts into English to maintain language consistency throughout the project, which will improve clarity and maintainability. The addition of bunfig.toml is correct and aligns with the stated goal of disabling automatic dotenv loading.

Comment thread .claude/commands/sonarqube/fix.md Resolved
Comment thread .claude/commands/sonarqube/fix.md Resolved
@codecov

codecov Bot commented Feb 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@amondnet amondnet self-assigned this Feb 11, 2026
amondnet and others added 2 commits February 12, 2026 03:27
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

1 issue found across 2 files

Prompt for AI agents (all issues)

Check if these issues are valid — if so, understand the root cause of each and fix them.


<file name=".claude/commands/sonarqube/fix.md">

<violation number="1" location=".claude/commands/sonarqube/fix.md:228">
P2: Commit message template uses Korean, inconsistent with the rest of the English-language project and this document. This will produce non-English commits in the git log.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Comment thread .claude/commands/sonarqube/fix.md Resolved
@sonarqubecloud

Copy link
Copy Markdown

@amondnet
amondnet merged commit f7bae44 into main Feb 11, 2026
8 checks passed
@amondnet
amondnet deleted the chore/add-sonarqube-command-and-bun-config branch February 11, 2026 18:34
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