.c Files which is not present in build-wrapper-dump.json is considered while executing sonar-scanner

Iam using sonarQube for my C project.I have created build-wrapper.json file from IARbuild, but when i run sonarscanner .c files which are excluded in IARbuild and not present in json are still considered and the same is shown in sonarQube dashboard also

Sonar-build-wrapper --out-dir bw_o IarBuild project.ewp -build Release → using this command to generate json file

sonar.cfamily.build-wrapper-output = bw_o → using this command in sonar-project.properties file

How to configure sonarscanner to consider only files which are present in .json ?


Welcome to the community!

Can you provide your analysis log, with any sensitive values redacted?

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.