Write Clean Kotlin

static code analysis tools for your Kotlin

Utilize static code analysis to find issues in Kotlin such as bugs, code smells & security vulnerabilities. Use the Sonar language analyzer with hundreds of rules to evaluate your code and ensure the security, reliability and maintainability of your software.

your passion is Kotlin, our passion is Clean Code

Sonar static code analysis helps you build secure, maintainable and high-quality Kotlin code. Covering popular build systems, standards and versions, Sonar elevates your coding standards while keeping dangerous security vulnerabilities at bay

Using Sonar with Kotlin
130+ dedicated static code analysis rules

your Kotlin code standards, covered

See all the Kotlin rules -->

fast

Try the fastest Kotlin analysis and spend more time fixing errors than waiting for your pipeline

Learn More

secure mobile

Catch security-sensitive configuration issues before the Android application gets deployed to the PlayStore

Learn More

coroutines

Learn how to use the coroutines library properly and avoid mistakes.

Learn more

latest version support

Learn shiny new features with the analyzer being updated for each Kotlin version. Includes support for Kotlin Multiplatform.

Learn More
reduce security risks

own the security of your Kotlin code

Dedicated static analysis rules to detect vulnerabilities including ones stemming from OWASP & CWE Top 25 guidelines.

Kotlin Security Rules
Image is representing developers and their code in a secure environment free of potential code vulnerabilities.

SonarQube code analysis finds issues while you focus on the work

It all comes from a powerful static analysis engine that we constantly refine. SonarQube employs advanced rules along with smart, exclusive static code analysis techniques to find the trickiest, most elusive issues, code smells, and security vulnerabilities.

Download SonarQube Now -->
code review with issues such as bugs, vulnerabilities, security hotspots and code smells.

precise static code analysis

Deep static analysis of your code through symbolic execution, path sensitive analysis & cross-function/cross file analysis.

fast issue resolution

Issue contextualization with secondary locations highlighted and clear remediation guidance helps you understand and construct a fix.

minimal distractions

Automatic pull request analysis with results decorated in your favorite DevOps platform so you stay in the zone.

The best way to code Kotlin better

produce secure, reliable and maintainable software

Sonar brings Clean Code to where your code lives. Sonar is tightly integrated with your CI/CD workflow to feed you the right info at the right time and place.

For you

Kotlin linting in your IDE

SonarLint in your IDE is your first line of defense for keeping the Kotlin code you write today clean and secure. Issues are raised in-line with clear rule descriptions and guidance.

With SonarLint, the impact is immediate and no configuration is required. You learn from the real-time feedback provided and quickly resolve issue with contextual guidance and automatic Quick Fixes!

SonarLint is available from your IDE marketplace:
Visual Studio | VS Code | JetBrains | Eclipse

Explore SonarLint
Sonar works in your Jetbrains, VS Code, Visual Studio and Eclipse IDE's
For your developer team

Kotlin in your cloud workflow

Automatically analyze Pull Requests and feature branches with the results decorated in the DevOps platform of your choice.

Your team can share rule configurations and exclusions across projects and coalesce on a shared definition of excellence. The project Quality Gate is visible to everyone and the releasabity status is clear.

SonarCloud tightly integrates with these popular platforms:
GitHub | Bitbucket | Azure DevOps | GitLab

Try SonarCloud for Free
refactoring bits of code and quality checks are shown as an abstract of a developers environment.
Increase the value of your software

reduce technical debt with each release

Sonar empowers developers to write Clean Code

As a developer, your priority is making sure the Kotlin you write today is high quality and secure. The Sonar user interface highlights the health of your New Code (changed or added) so you’ll clearly know when your code quality is solid.

Learn More

Quality Gates show your project releasability

Out of the box, the Sonar Quality Gate clearly signals whether your commits are clean and your projects are releasable. A Quality Gate coalesces the team around a shared vision of code quality. Everyone knows the coding standard of excellence and whether it’s being met.

Learn More

we support your Kotlin analysis workflow

Kotlin 1.3 to 1.9

Background image of bits of code connecting to each other

start cleaning your Kotlin now

Self-managed appSaaS App