globe with meridians Language: Deutsch · English

hammer and wrench Sonar code analysis

Static code analysis with SonarCloud – mvn sonar:sonar, SONAR_TOKEN, Java 17 and branch analysis.

HOW-TO DEVELOPER UPDATED: JUL 2026 APPLIES TO NUCLOS 4.2026.X

On this page

A Sonar code analysis including coverage is available via the cloud (from v4.2024.13): sonarcloud.io. The analyses are produced by the nightly integration-test CI job for master.

Invocation

The Sonar settings in the Nuclos pom.xml add the analysis automatically:

mvn sonar:sonar

Prerequisites

The Sonar Maven plugin requires Java 17. An upload requires a permission (environment variable SONAR_TOKEN).

Developer branches

SonarCloud can distinguish Git branches. To focus the analysis on the branch changes, the call is extended (e.g. with -Dsonar.branch.name=$GIT_BRANCH, set by Jenkins). Sonar treats such branches as „short-lived“.

Related pages

gear Code coverage (JaCoCo)


Coverage.

Open →

  • Keine Stichwörter