How to search for a specific rule in sonarqube gui

Hi,

This is a general question. I just installed 4.0.5 the sonar spotbugs release in our sonar instance 8.9 Installation was successful.There are some new rules added in spotbugs like:

DCN_NULLPOINTER_EXCEPTION, REFL_REFLECTION_INCREASES_ACCESSIBILITY_OF_CLASS, MC_OVERRIDABLE_METHOD_CALL_IN_CLONE, MC_OVERRIDABLE_METHOD_CALL_IN_CONSTRUCTOR, EOS_BAD_END_OF_STREAM_CHECK, MS_EXPOSE_BUF, EI_EXPOSE_BUF, EI_EXPOSE_STATIC_BUF2, EI_EXPOSE_BUF2

I want to check that they are included. I tried to search for these strings but I was not successful.
Any hints of how I can find these in the FB profile? What should I search for?

br,

//mike

Hi mike,

Generally, rule keys should work in the search on the rules page. Since those searches aren’t working, I guess they weren’t assigned as the rule keys in SonarQube(?). I guess you’re going to have to search by representative phrases and comb through the results manually.

 
:woman_shrugging:
Ann

I checked a rule, not the one I am looking for, that exists.

tried to search for it IL_CONTAINER_ADDED_TO_ITSELF

I do the same for others but without any luck.

Could you show me how you search?

br,

//mike

I also checked the rule keys in sonarqube/spotbugs uplift commmit:

and they seem to use the name that I tried to search for. Is it a bug that you cannot search for keys.

br,

//mike

Hey there.

You’re attempting to use the global project search (which is why the default text says “Search for projects”. Try this search field instead:

1 Like

yeah my bad! I did not see it.
Thanks for support!

//mike