Overview Version History Q & A Rating & Review
Agent Sonar
🎧 Agent Sonar by Prashant Pandey - Seamless SonarQube integration with GitHub Copilot for VS Code
Features
🔍 One-Click Project Analysis - Glowing "Analyze Project" button in the sidebar
📊 Project Metrics Dashboard - View bugs, vulnerabilities, code smells, security hotspots, ratings
🛡️ Security Hotspots - Fetch and navigate security hotspots
🐛 Code Issues - Fetch bugs, vulnerabilities, code smells
💬 Copilot Chat Integration - Use @sonar commands in Copilot Chat
🔧 Fix Suggestions - Get AI-powered fix recommendations
📋 Project Selection - Dropdown to select from available SonarQube projects
Quick Start
Open VS Code Settings (Ctrl+,)
Search for "Agent Sonar"
Enter your SonarQube Server URL
Enter your API Token
Use "Select Project" command to pick a project
Click the glowing Analyze Project button!
Chat Commands
@sonar show hotspots - Fetch security hotspots
@sonar show issues - Fetch code issues
@sonar fix - Get fix for issue at cursor
@sonar /fixall - Fix all issues in file
@sonar /analyze - Analyze project
Publishing to VS Marketplace
Prerequisites
Create Azure DevOps Organization (if you don't have one):
Create Personal Access Token :
Create Publisher :
Publishing Steps
# Install vsce globally (if not installed)
npm install -g @vscode/vsce
# Login with your PAT
vsce login prashant-pandey
# Enter your Personal Access Token when prompted
# Publish the extension
cd C:\Users\pandeyp2\sonarqube-copilot
vsce publish
# Or publish with a specific version bump
vsce publish minor # 1.0.0 -> 1.1.0
vsce publish patch # 1.0.0 -> 1.0.1
Alternative: Publish VSIX directly
Go to https://marketplace.visualstudio.com/manage/publishers/prashant-pandey
Click "New Extension" > "Visual Studio Code"
Upload agent-sonar-1.0.0.vsix
Version History
v1.0.0
Initial release
Analyze Project button with glowing effect
Project metrics dashboard (bugs, vulnerabilities, code smells, ratings)
Security hotspots fetching
Code issues fetching
Copilot chat integration (@sonar)
Fix all / Fix by type commands
Project selection dropdown
License
MIT License - See LICENSE file
Author
Prashant Pandey