Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.
Auszug
hiddentrue

Nuclos Sonar: SonarCloud, sonar:sonar, SONAR_TOKEN, Java 17, branch, code analysis, coverage, Jenkins.

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.

Status
colourPurple
titleHow-to
Status
colourBlue
titleDeveloper
Status
colourGreen
titleUpdated: Jul 2026
Status
colourGrey
titleapplies to Nuclos 4.2026.x

Panel
bgColor#F4F5F7

On this page

Inhalt
maxLevel2
minLevel2

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:

Codeblock
languagebash
mvn sonar:sonar
Warnung
titlePrerequisites

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 →