We have an on-premises installation of SonarQube, and after upgrading from version 6.0 to 6.5 I noticed that several bugs and code smells as old as 2012 have resurfaced. I wasn’t expecting that to happen, as per SonarQube 6.3 release notes – see section “Remove noise on the Leak period for newly activated rules”.
Since they are old and we have no plans to handle them now, they are impacting our gate status – which is currently red – and I don’t see how I can get rid of them in a proper way.
I can think of two options:
- Shorten the leak period, which is not a good approach as existing valid smells in this leak period would be considered technical debt;
- Mark them as "false positive" or "won’t fix", which is also not a good idea as we would lose traceability of existing bugs and smells we could eventually plan to fix one day.
In such cases, what's the best approach to be taken?