Wrong Backdating for Bugs in old codes?

Hi there,
Currently, I’m using Sonar (SonarQube Version 6.7.5 build 38563) on a server.

I’ve encountered a problem related to the backdating when scanning an old project.
The old codes produced old issues that have the date of scan, not the date of commit.

This is the scan chronology until now:

  1. 26 Sept 2018, First scan. The dates were correct. Version was ‘not provided’
  2. 3 Oct 2018, The quality profile was changed. The dates were correct. Version was still ‘not provided’
  3. 10 Oct 2018, The quality profile was changed. Version was Baseline.
    There are 2 new errors in the old codes.
  4. 17 Oct 2018. No quality profile changes. Version was 5.0.0.
    The errors from 10 Oct 2018 were fixed by themselves.(Resolution = fixed, Status = closed). But there are 2 new errors.
  5. 24 Oct 2018. No quality profile changes. Version was still 5.0.0.
    No new error.
  6. 31 Oct 2018. No quality profile changes. Version was still 5.0.0.
    Somehow one of errors from 17 Oct 2018 was fixed.
  7. 7 Nov 2018. The quality profile was changed. Version was still 5.0.0.
    There are 2 new errors.
  8. 14 Nov 2018. No quality profile changes. Version was still 5.0.0.
    The errors from 7 Nov 2018 were fixed by themselves. But there is a new error again.

Important Note: There is no changes at all on the SCM and the project has over 7000 files.

So far, I have tried to re-scanned while replicating the quality profiles’ changes on my local version. It has similar problem with different bugs that has wrong backdating…

I would like to know whether this sonar’s bug or the side effect of changing the quality profile or because of the massive amount of files that may potentially create this problem or the external thing that may cause this problem?

Or if this is not a problem. Why the issues did appear even though there is no changes in quality profile and the code?

Thanks for your attention. Sorry for the long question.

Hi,

We’ve been working progressively on backdating over the last year or so. 6.7 includes some of our first efforts, but if you need better accuracy, you’ll need to upgrade to the latest version.

Note that even in 7.4, we still don’t backdate in all cases (and probably never will, actually). You can follow this initiative for progress:

MMF-1287 - Issues should usually be backdated

 
Ann

Ah, I see.
Thank you for your answer and the information.
I’ll think about it.