Hello,
I try to scan our project with build-wrapper-linux-x86-64
around the platformio ci build. The result looks good and I get feedback to the findings.
Unfortunately the findings are not mapped back to original source file in GIT but to a copy of the sources in the temporary bin
path created by platformio. Is there a trick to tell the SonarScanner to prefer original sources over the copies?
The build uses github actions and can be found here: https://github.com/Friends-of-OpenBikeSensor/OpenBikeSensorFirmware/blob/master/.github/workflows/ci.yml. The SonarCloud project is at https://sonarcloud.io/code?id=Friends-of-OpenBikeSensor_OpenBikeSensorFirmware - as you see there is source listed in “src” and “bin/src” directory. Only the “src” directory is a real source directory.
Is there a setting I miss, or a trick to “fix” this via sed in the created “build-wrapper-dump.json”.
Might be my setup is completely wrong?
Kind regards,
Andreas.