When code is deleted, issue deleted

Hi,

We use Developer Edition Version 10.0 (build 68432), and understand that issue will be automatically deleted 30 days after closed by default.

However, we are very curious in this situation.
When we delete a piece of code with an issue, the issue does not turn into removed, but disappears directly, and we cannot use the issue key to find any records of it.

Is this SonarQube normal design process? Or is it some kind of bug?

Hey there.

I can find issues on removed code under Resolution > Fixed

Does this help, or can you still not find the issue?

Hi,

Thanks for the reply.
We found the situation will happened in Security Hotspots.
If we did not manually change the status of the issue in hotspots, but directly fixed and scanned again, the issue would disappear.

Thanks.

Are you deleting an entire file, or just a section of code?

Hi,

Some program files are change to another folder, some are just delete a section of code.
Thank you.

Thanks.

I’m not sure what our perspective is on this for hotspots, so I’ve reached out to somebody who should be able to comment.