Sonar showing old bugs in New Code section

Sonar showing old bugs in New Code section, we have mentioned 3 days to analyze new code, no code changes during that time, but showing many bugs? why its showing the bugs if no code changes.

Could you please help on this.

Thanks & Regards,

1 Like

Hi Madhu,

Welcome to the community!

This is probably a problem of the detection of new code in your project. Most likely the SCM data for the project is wrong or missing during analysis. Can you share your 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.