Why is rule S2077 reported two different ways?

Hi,

I’m assuming from the fact that you’re seeing this that you’ve been using SonarQube a while. Just like the SonarQube UX has evolved over time, the rules have as well. We add rules frequently, occasionally deprecate some, and often re-evaluate rules. That means that multiple rules have changed not just severity but also type over the years.

But when a rule changes type or default severity, we don’t update existing issues from that rule. They keep the type & severity they were ‘born’ with. That’s why you’re seeing this disparity.

 
HTH,
Ann

1 Like