Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Execution of the build via make should create the output file build-wrapper-dump.json, which can be consumed by the Sonar scanner.

An example in the O-RAN-SC project is https://gerrit.o-ran-sc.org/r/admin/repos/ric-plt/lib/rmr

Configure Golang Project for Code Coverage

...

Execution of the build via this command should create the output file coverage.txt, which can be consumed by the Sonar scanner. However modules are not supported yet by the Sonar Scanner. The problem and some workarounds are described here: https://jira.sonarsource.com/browse/SONARSLANG-450

An example in the O-RAN-SC project is https://gerrit.o-ran-sc.org/r/admin/repos/ric-plt/alarm-go

Configure Java Project for Code Coverage

...

Execution of the build via maven should create the output file target/jacoco.exec, which can be consumed by the Sonar scanner.

An example in the O-RAN-SC project is https://gerrit.o-ran-sc.org/r/admin/repos/portal/ric-dashboard

Configure a Python Project for Code Coverage

...

Execution of the build via tox (really just tests) should create the output file coverage.xml, which can be consumed by the Sonar scanner.

An example in the O-RAN-SC project is https://gerrit.o-ran-sc.org/r/admin/repos/ric-plt/a1

Setting up development environment

...