In the sonarqube task configuration, Can i set the analysis mode to changed line only

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 : Azure devops
  • what are you trying to achieve : Analyze the code using Azure devops
  • what have you tried so far to achieve this : Conde analysis happening but every time when PR running with separate branch, code analysis is running for entire branch insted of modified lines in the file

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

Hey there.

What language(s) are you analyzing?

Hi Colin. Sorry for the late response. We do use C#


While there’s no specific setting to say “only anlayze changed files” – SonarQube v9.9 LTS does introduce support for incremental PR analysis (assuming the target branch has recently been scanned). Make sure you’re using the latest version of the Scanner for .NET which supports this.

1 Like

Hi Colin, Thanks for the response. We are on V9.9 LTS only with the latest fixes 9.9.2 . We will check and update you back.