Architecture is available on all SonarQube Cloud plans, including the Free and Open Source plan.
Since the closed beta in December 2025, we have been working with beta testers to get this right. It is now open to everyone, with support for Java, JavaScript, TypeScript, Python, and C#.
What’s in the box
A map of your codebase
SonarQube extracts a dependency graph from your source code through static analysis and gives you a levelized map of how your components actually relate.
It updates on every analysis, so it reflects what the code looks like at any moment. You can use it as your ground truth.
Check your mental model
From there, you can define an intended architecture: the components you want and the relationships you allow between them.
Start at the top level and define only what matters. The rest won’t be checked. A few high-level components go a long way, and can replace your whiteboard diagrams forever.
SonarQube then compares your diagram with the code and surfaces any deviations in the structure or relationships. It’s really that simple.
Workflow and enforcement
For each deviation, you get automatic code-level issues created in your existing workflow and Quality Gates, like any other code issue. You can also manage this in Quality Profiles, so the process stays under your control.
SonarQube will also detect architecture flaws like tangles of cyclic dependencies and show you a diagram to help you understand them. You pick which relationships to cut, and that creates an issue.
Get started
If you already have a project on SonarQube Cloud, you’re already set up. Go to the “Architecture” menu and see your real architecture.
Check the architecture resource center, with videos, presentations, and blog posts that go in depth.
Please share your feedback!


