GitLab Integrations for SonarQube & SonarCloud | Sonar

GitLab Integration

clean code in your GitLab repositories

Sonar tightly integrates with GitLab enabling your team to consistently and efficiently deliver clean code that's free of vulnerabilities, bugs and code smells.

Sonar features for GitLab

extended GitLab experience for clean code

Elevate your GitLab experience with Sonar and ensure only Clean Code is added to the code base. With just a few clicks you're up and running right where your code lives.

MR decoration

Sonar automatically decorates code quality metrics directly on your merge request & feature branches. Resolve issues BEFORE you merge.

go/no-go Quality Gate

Fail your GitLab pipelines when the quality of code doesn’t meet your defined requirements. Clean Code becomes the norm!

issue review

Review and prioritize issue remediation during code reviews directly from GitLab.

monorepo support

Configure multiple Quality Gates and receive project-labeled messages in your GitLab mono repository.

Background image of bits of code connecting to each other

integrate GitLab with Sonar now!

Self-managed app -->SaaS App -->
easy onboarding, instant value

built-in features make analysis a snap!

easy onboarding and authentication

Sonar supports authentication delegation - if you're logged into your GitLab account, you're all set!

auto issue assignment

Native Git data support so issues are automatically assigned and tracked.

continuous inspection

Configure your CI chain to automatically analyze merge requests and branches and publish the Quality Gate results in the build summary.

loved by developers, trusted by organizations.

a must-have for your team

7M+

developers use Sonar

5,000+

coding rules available

500B+

lines of code analyzed

GitLab Code Review

Security vulnerability review in GitLab

Sonar workflow integration helps you review and prioritize vulnerabilities directly from your repository during your code reviews.

Learn more -->
reviewing vulnerability in GitLab

see the benefits for yourself!

Watch the video GitLab Merge Request/Branch Decoration with SonarQube

end-to-end CI/CD benefits

With its tight coupling to GitLab, Sonar analyzes your projects and provides code health metrics at the right time and in the right place

Promote only clean builds

Non-disruptive code quality analysis overlays your workflow so your team only produces clean builds. Your project’s Quality Gate status is clearly decorated right in GitLab Pipelines along with code coverage and duplication metrics. Live updating keeps everyone on the same page.


Integrate with GitLab CI/CD, Jenkins, CircleCI or any other CI tool.

See it in SonarQube -->
Image shows results of a pull request

Less setup; more analysis

You’ve got fresh code to analyze so we make it easy to get started. An onboarding wizard guides you in adding all your projects and setting up autodetection of branches and MRs.

1-click with SonarCloud -->
Setting up SonarQube and SonarCloud is easy

supports dozens of popular languages, development frameworks and IaC platforms

Background image of bits of code connecting to each other

integrate GitLab with Sonar now!

  • Follow SonarSource on Twitter
  • Follow SonarSource on Linkedin

© 2008-2023, SonarSource S.A, Switzerland. All content is copyright protected. SONAR, SONARSOURCE, SONARLINT, SONARQUBE and SONARCLOUD are trademarks of SonarSource SA. All other trademarks and copyrights are the property of their respective owners. All rights are expressly reserved.