SonarQube Analysis Integration

Query SonarQube issues, hotspots, and metrics via the sonar-issues.sh CLI.

4|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/peterquiel/claude-ape-setup --skill sonarqube-analysis-integration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: SonarQube Analysis Integration
Source: https://github.com/peterquiel/claude-ape-setup/tree/main/.claude/examples/sonarqube
Command: npx skills add https://github.com/peterquiel/claude-ape-setup --skill sonarqube-analysis-integration

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Access to SonarQube data via the sonar-issues.sh CLI enables quick visibility into code quality issues, hotspots, and overall metrics across projects.

Core Features & Use Cases

  • Project overview, issue lists, and metrics from a SonarQube instance using the sonar-issues.sh CLI.
  • Flexible filtering by severity, type, hotspots, and file scope, with JSON exports for tooling integration.
  • Supports common workflows to monitor defects and hotspots across multiple projects.

Quick Start

Run sonar-issues.sh summary to view a project overview and basic metrics.

Frequently Asked Questions about SonarQube Analysis Integration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query SonarQube issues and code quality metrics from the command line?

You can query SonarQube issues and code quality metrics from the command line using the sonar-issues.sh CLI. It surfaces project-level analysis data, enabling quick visibility into defects across your codebase.

Can I filter SonarQube code issues by severity and type?

Yes, you can filter SonarQube code issues by severity and type. The CLI supports flexible filtering for bugs, vulnerabilities, code smells, and hotspots, and allows scoping queries to specific files.

What is the best way to export SonarQube analysis results for downstream tooling integration?

The best way to export SonarQube analysis results for tooling integration is using the JSON export command. The sonar-issues.sh CLI generates JSON outputs of your filtered issues and metrics for automated pipelines.

How do I retrieve SonarQube security hotspots for a specific project key?

To retrieve SonarQube security hotspots for a specific project, run the sonar-issues.sh hotspots command. You configure the query via a project key to surface relevant security hotspot data across your codebase.

Do I need a specific SonarQube project key to get a code quality summary?

Yes, you need a specific SonarQube project key to get a code quality summary. The sonar-issues.sh summary command requires a project key to query and display the project overview and basic metrics.

Does the SonarQube CLI support listing metrics for multiple projects?

Yes, the SonarQube CLI supports listing metrics for multiple projects. It includes a projects command to monitor defects and quality metrics across various projects within your SonarQube instance.