Sonar PR quality gate considering whole code instead of new file changes

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • how is SonarQube deployed: zip, Docker, Helm
  • what are you trying to achieve
  • what have you tried so far to achieve this

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Hi All,


Welcome to the community!

I’m wondering if you accidentally hit ‘submit’ before you finished typing?

Based on the title of this thread, I’m guessing there’s a problem with the identification of new code. Can you post 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.