Hello,
I have an issue when analyzing a project build with buildroot framework.
The sonar-scanner analysis run but no result are present on the server: “The main branch has no lines of code.”
Sonarqube Version 8.2 (build 32929)
Sonar scanner:
INFO: Scanner configuration file: /home/anto/sonar-scanner-cli-4.2.0.1873-linux/conf/sonar-scanner.properties
INFO: Project root configuration file: /home/anto/dev/msf_dhs_bsp/sonar-project.properties
INFO: SonarQube Scanner 4.2.0.1873
INFO: Java 11.0.3 AdoptOpenJDK (64-bit)
INFO: Linux 5.4.0-52-generic amd64
sonar-project.properties
Blockquote
sonar.projectKey=DHS_APP_2017
sonar.projectName=Build
sonar.projectVersion=1.0
Blockquote
I compile the full project with buildroot, then I launch the sonar-scanner command:
sonar-scanner -Dsonar.projectKey=msf_dhs_bsp -Dsonar.sources=buildroot/output/build -Dsonar.host.url=http://XXX.XXX.XXX.XXX:8080
buildroot/output/build directory contains our proprietary source code and required library.
Details provided by the server:
{“task”:{“id”:“AXXBDkKnUAxIJNN5FDwK”,“type”:“REPORT”,“componentId”:“AXFRA_LS9xmsd_xWchkw”,“componentKey”:“msf_dhs_bsp”,“componentName”:“Build”,“componentQualifier”:“TRK”,“analysisId”:“AXXBDkYA-NdxDMNSOa7z”,“status”:“SUCCESS”,“submittedAt”:“2020-11-13T11:02:18+0100”,“startedAt”:“2020-11-13T11:02:19+0100”,“executedAt”:“2020-11-13T11:02:20+0100”,“executionTimeMs”:1764,“logs”:false,“hasScannerContext”:true,“organization”:“default-organization”,“warningCount”:0,“warnings”:}}
Another question is how to tell sonar-scanner to check only our proprietary source code.
Thanks in advance