Sonar pull Request Analysis is scanning entire code instead of changed files

Hi,

Welcome to the community!

It’s normal in some cases for PR analysis to have to analyze the full code base (e.g. when caches aren’t available). What shouldn’t be happening is that it reports on the entire code base, which I’m guessing is what your second screenshot (with ‘4.8k New Lines’) shoes.

In that case, we’re looking at a problem detecting new code. You should make sure the prerequisites are met. If they are, then please share your analysis log.

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.

 
Ann