On a pull request, I “resolved” some issues.
Meanwhile, a coworker merged his own PR on the target branch.
So I locally updated to target branch, rebased my branch on it, pushed my branch, and relaunched a Sonar analysis on my PR.
Then, the issues I previously accepted come back.
Thanks @oodni, and apologies for the delayed response.
That could explain things – SonarQube Cloud can indeed fail to detect new lines (and new vs. old issues) if the target branch isn’t reanalyzed, which is especially obvious when the first analysis of a repo happens via a pull request.
However, despite numerous attempts, I haven’t been able to reproduce this locally with a rebase. The issues remain closed in my sample PRs.