Wrong date commit in code

Hello, Sonar created a issue in a code after a merge in Bitbucket, but the commit date is wrong. Sonar say “Commited on Jan 02, 2024” in part of the code, but no commit was made on this date.

Why Sonar created a issue in a code was not “created” by me? Code come in a merge by another developer.

Hey there.

Are you sure that SCM information is available for your project, and that the project has been properly “blamed”? You can check your scanner logs.

WARN: SCM provider autodetection failed. Please use “sonar.scm.provider” to define SCM of your project, or disable the SCM Sensor in the project settings.

In the absence of SCM data, SonarQube will use the date that the line was first detected (the first date it was analyzed).

By the way – as mentioned in the template post, what version of SonarQube are you using?