New rule to detect obsolete NOSONARs

Qube: Community 9.9

There should be a rule to find obsolete NOSONAR tags. Whenever a rule has improved or got deactivated some NOSONARs might have got obsolete. I would like a rule to detect them.

Hey there.

This might already exist for some languages. What language(s) are you analyzing?

Hi Colin,

it is Java (as tagged).

Well, would be useful for Javascript as well.

Hey there.

It looks like I was thinking of a rule that was never implemented (S4290) which was specifically about SuppressWarnings in Java.

I’ve moved your post to the category of “Suggest New Rules”

1 Like


just wanted to ask, if there are any updates. A rule like this is useful with any major sonar update.