Skip to content
@sonar-samples

Sonar Samples

Practical SonarQube workshops, implementation blueprints, and runnable examples.
Sonar

Practical examples and step-by-step guides for integrating Sonar into developer workflows

Website · Docs · Community · @SonarSource


The repositories linked from this page are example implementations, not supported Sonar products. They exist to help you learn and adapt Sonar for your own workflows. Test, secure, and validate anything you use here against your team’s standards before it touches production.

Choose what you want to do, then open the repository that matches your tool or environment. Each guide repository includes the complete steps and supporting files.

I want to:

Find what you need

Work with AI coding agents

If you use Start here What you will set up
Claude Code Set up Sonar Vortex in Claude Code Project guidance, automatic analysis after edits, multi-file analysis, and secrets detection
OpenAI Codex Wire your team for agentic development with SonarQube and OpenAI Codex A hands-on SonarQube Cloud workflow for finding secrets, investigating issues, and verifying AI-generated code
Cursor Set up the SonarQube plugin for Cursor The SonarQube plugin, SonarQube MCP Server, analysis hooks, secrets detection, and project context
A terminal or multiple coding agents Get started with the SonarQube CLI Local analysis, agent integrations, Git hooks, project queries, and SonarQube authentication

Improve pull request reviews with Gitar

If you want to Start here
Learn the full review workflow in a browser Gitar workshop
Make reviews aware of repository conventions and rules Configure Gitar context for project-aware code reviews
Add organization instructions, Jira, Slack, or custom context Extend Gitar with organization and external context
Run the application used in the Gitar context blueprints Gitar context ingestion sample

Manage application architecture

If you want to Start here
Explore current architecture, define an intended architecture, and find deviations Get started managing your architecture with SonarQube

Browse by content type

Hands-on workshops

Repository What it covers
learn-codex-workshop Connect Codex CLI to SonarQube Cloud and work through secrets detection, issue investigation, and verification of AI-generated code.
gitar-workshop Use Gitar to review pull requests, enforce repository conventions, and investigate a failing CI pipeline.

Implementation blueprints

Repository What it covers
blueprint-sonar-vortex-claude Set up Sonar Vortex in Claude Code with project context, code verification, and secrets detection.
blueprint-sonarqube-plugin-cursor Add the SonarQube plugin and its supporting integrations to Cursor.
blueprint-sonarqube-cli Use the SonarQube CLI for local analysis, agent integrations, Git hooks, and project data.
blueprint-architecture-management-sonarqube-cloud Explore current architecture, define an intended architecture, and find deviations in SonarQube Cloud.
blueprint-gitar-context-ingestion Configure repository context for project-aware Gitar reviews.
blueprint-gitar-advanced-config Extend Gitar reviews with organization instructions, Jira, Slack, and custom integrations.

Runnable samples

Repository What it covers
sample-gitar-context-ingestion Run the Flask application and intentional error-handling bugs used by the Gitar context blueprints.

Search by topic

Use GitHub topics to narrow the repository list by product, workflow, tool, or language.

How repositories are organized

Repository names signal what kind of content they contain.

Name Content
blueprint- prefix Step-by-step implementation guides with supporting configuration, code, or screenshots
learn- prefix or -workshop suffix Hands-on workshops that can also be followed as standalone tutorials
sample- prefix Focused applications, templates, or configurations used by guides and workshops

About these repositories

These repositories are examples designed for learning and reference. Review the prerequisites and product documentation for your own environment.

For Sonar product documentation, visit docs.sonarsource.com. For product questions, use the Sonar Community.

Popular repositories Loading

  1. learn-codex-workshop learn-codex-workshop Public

    Hands-on workshop: wire Codex CLI to SonarQube Cloud for secrets scanning, issue detection, and automated verification of AI-generated code

    Shell 5 6

  2. blueprint-sonarqube-mcp-server-gemini-code-assist blueprint-sonarqube-mcp-server-gemini-code-assist Public

    Get started with SonarQube MCP Server and Gemini Code Assist agent mode — step-by-step blueprint with config files and screenshots.

  3. blueprint-architecture-management-sonarqube-cloud blueprint-architecture-management-sonarqube-cloud Public

    Manage current and intended application architecture in SonarQube Cloud.

  4. blueprint-sonarqube-plugin-copilot-cli blueprint-sonarqube-plugin-copilot-cli Public

    Blueprint for setting up the SonarQube Plugin for GitHub Copilot CLI.

  5. blueprint-sonarqube-agent-app-github blueprint-sonarqube-agent-app-github Public

    Blueprint for setting up the SonarQube Agent App for GitHub

  6. blueprint-acdc-opencode-cli blueprint-acdc-opencode-cli Public

    Blueprint for configuring OpenCode CLI for Sonar Context Augmentation and Agentic Analysis

Repositories

Showing 10 of 23 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…