Sonarcloud spike dropping 500+ code smells and then re-detecting them weeks later

  • ALM used: GitHub
  • CI: Circle CI
  • Languages of the repository: Typescript

Hi,

On June 19th, one of our projects had an inverted spike on code smells, going from 500+ to 50 without changes to the quality profile, quality gate or anything.

Just this morning, with the only changes in new code being from 2 days before. We have the New Code definition set to previous version, and we are updating the version through the release.config.js, so it makes no sense why out of nowhere we dropped 500 code smells and then they reappeared again.

I have the IDs of all the analysis done in both days, but they are private, so I’d need to share them through private message.

Hi,

Could we start with the dates of the analyses, and also the analysis logs?

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.

 
Ann