Architecture now available with automatic analysis on SonarQube Cloud

Hello community,

Architecture is now available on SonarQube Cloud with automatic analysis. If your project already uses automatic analysis, open the Architecture tab. There is nothing to configure.

What you get

Automatic analysis connects to your repository and scans on every push, including PRs, without a CI/CD pipeline. Architecture analysis is now part of that scan.

The current architecture view gives you an interactive representation of your codebase: how components relate to each other, and how coupled or cohesive they are. It is produced directly from the code, not from diagrams or documentation.

From there, you can define an intended architecture, add constraints on structure and relationships, and let SonarQube flag deviations on every analysis. That enforcement loop now runs without a pipeline.

Availability

Available now on SonarQube Cloud for all projects using automatic analysis, in addition to CI/CD. Supported languages: Java, JavaScript, TypeScript, Python, C#.

The architecture resource center has videos, presentations, and blog posts with more detail.

Share your questions and feedback below.

What will it take to trigger a new automatic analysis? I have a fork of a Github repo, and I previously set up my fork in SonarCloud. Seeing this announcement I used the GH Web portal to sync the main branch (master) of my fork from its upstream. This brought in a stack of changes, but SonarCloud doesn’t (yet) seem to have run a new analysis.

Pinging @paul.hickey

@gjsjohnmurry A new analysis is triggered only when GitHub sends a push event. After the first import, subsequent automatic analyses run on every push to the default branch and on every push to any PR branch.

Just discovered that branch analysis doesn’t happen on Free, so I’ll need to try another approach.