Hi Sirs,
Below are the basic information of SonarQube server.
*SonarQube Developer Edition Version 9.6.1 (build 59531)
*SonarScanner 4.8.0.2856
*SonarQube is installed on Ubuntu 18.4 with Java Runtime
*Java 11.0.17 Eclipse Adoptium (64-bit)
- Linux 5.4.0-150-generic amd64
I have built some test code and want to upload to Sonarqube server for static analysis.
When I perform the scan following the sequence of web page, sonar-scanner threw some warning message like that:
WARN: File '/share/New_Bare_Metal/BSP/A380/gcc.ld' is ignored. It is not located in project basedir '/share/New_Bare_Metal/generated_projects/make_gcc_arm_a380'.
WARN: File '/share/New_Bare_Metal/BSP/A380/a380.ld' is ignored. It is not located in project basedir '/share/New_Bare_Metal/generated_projects/make_gcc_arm_a380'.
WARN: File '/share/New_Bare_Metal/BSP/A380/start.S' is ignored. It is not located in project basedir '/share/New_Bare_Metal/generated_projects/make_gcc_arm_a380'.
WARN: File '/share/New_Bare_Metal/BSP/A380/startup_ARMCM4.s' is ignored. It is not located in project basedir '/share/New_Bare_Metal/generated_projects/make_gcc_arm_a380'.
WARN: File '/share/New_Bare_Metal/BSP/A380/startup.S' is ignored. It is not located in project basedir '/share/New_Bare_Metal/generated_projects/make_gcc_arm_a380'.
WARN: File '/share/New_Bare_Metal/BSP/A380/Include/spec_asm.h' is ignored. It is not located in project basedir '/share/New_Bare_Metal/generated_projects/make_gcc_arm_a380'.
WARN: File '/share/New_Bare_Metal/BSP/A380/Include/a380.h' is ignored. It is not located in project basedir '/share/New_Bare_Metal/generated_projects/make_gcc_arm_a380'.
WARN: File '/share/New_Bare_Metal/BSP/A380/Include/swi.h' is ignored. It is not located in project basedir '/share/New_Bare_Metal/generated_projects/make_gcc_arm_a380'.
WARN: File '/share/New_Bare_Metal/BSP/A380/a380.c' is ignored. It is not located in project basedir '/share/New_Bare_Metal/generated_projects/make_gcc_arm_a380'.
WARN: File '/share/New_Bare_Metal/YAML/a380.yaml' is ignored. It is not located in project basedir '/share/New_Bare_Metal/generated_projects/make_gcc_arm_a380'.
WARN: File '/share/New_Bare_Metal/YAML/a380-old.yaml' is ignored. It is not located in project basedir '/share/New_Bare_Metal/generated_projects/make_gcc_arm_a380'.
The makefile which used for build-wrapper-linux-x86-64 is located in different folder with the source files. I have assigned the “-Dsonar.sources” to the source path, however,the result is the same.
Should we always put the source files under the same folder of makefile?
Is another way to resolve it?
Thanks.
Fred