The relevant section of my project directory is as follows:
> |- Project_Source | >|- configs | | >|- sonar-project.properties | | >|- CMakeList.txt | | >|- // other config files ... | >|- executable | >|- inc | >|- drv | >|- src-common
My commands are as follows:
cd Project_Source cd configs mkdir build-sonarqube cd build-sonarqube cmake .. cd .. build-wrapper-linux-x86-64 --out-dir bw-output cmake --build build-sonarqube/ --config Release sonar-scanner -Dsonar.projectKey=... -Dsonar.cfamily.build-wrapper-output=bw-output -Dsonar.host.url=http://... -Dsonar.login=....
Before this editing, the files in the “configs” folder were placed under “project_source” and analysis output was obtained without any problems. Since I wanted to ensure code integrity and keep it in a separate place, I wanted to analyze it by taking it to a subfolder (of course, I rearranged the relative and absolute paths) but as a result, 0 files were analyzed.
The analysis is a success, but the number of scanned files shows 0, what exactly is the reason for this?