Does sonarqube need commit history while scanning source code

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) : 8.4
  • what are you trying to achieve :query
  • what have you tried so far to achieve this: NA

I have a big repo around 7 GB to scan. the automation is suppose to download the repo and scan it. since size is huge, it is not a good idea to full clone the repo. there is another option shallow clone which pulls source code + last commit. this is lite and fast.

Question:
Does sonar-scanner has any dependency on commit history ?

Hi,

In order to correctly

  • identify which lines are “new”
  • identify which issues are “new”
  • assign issues

Then a full clone is needed. If you don’t care about those things, then you should probably disable the SCM integration: Project Settings -> General Settings -> SCM -> Disable the SCM Sensor

 
HTH,
Ann