Why does the Sonar Scanner ignore files?

Build process which saves the results in the bw-output folder. You can see the file ASYNC_Protocol.c was builded.
image

The file is inside the P1169-SAG folder.
image

But the Sonar Scanner ignores this folder.
image

Do you have a solution?

Hi,

Could you provide your analysis log, as well as your analysis configuration?

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.

 
Thx,
Ann

Hi G Ann,
I’m not sure if I’ve understood that correctly. But the sonar scanner created a bw-output folder where the log and configuration is located. I have attached the two files. I hope this helps to answer the question as soon as possible.
Thank you very much!
build-wrapper.log (305.9 KB)
build-wrapper-dump.json (216.7 KB)

Hi,

Thanks for those files. What I was looking for was the console output of running the scanner.

 
Ann

Hi G Ann,

please find the console output in the attachment.

Thank you!
ConsoleOutputSonar.txt (22.8 KB)

I have solved the problem. It was due to the submodule:

It’s a sad thing that SonarCloud does not recognize this automatically. Other static analysis programs recognize this.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.