Since October 3, we’ve noticed a significant increase in bug and error indications across our projects. We’re not sure what caused this sudden spike, it looks like a rule changes or something in this area, because it alerts us on old code that didn’t change for a while.
If you prefer more control over when new rules are introduced, consider not using the default Sonar Way quality profile. Instead, copy the profile and periodically review or compare it in the UI to manage changes yourself.
FYI, I’m not a fan of the user experience here when we add a lot of rules at once (especially raising issues in PR on old code) and this is a topic we’re discussing internally.
Typically that just requires a simple commit to your main branch.
Are you using CI/CD-based analysis? Or Automatic Analysis?
There’s a bit of a chicken / egg issue here (normally you would analyze your main branch after merging a PR… but now PR analysis is raising issues on old code and failing your QG).