Thousands of unwanted issues in test code after upgrading to SonarQube 10

Hi
I’ve seen the announcement

and various questions whether the analysis scope could be controlled per rule, but without answers, e.g.

Is there still no way to control for me as user whether applying a rule make sense for my code base as on test level?

I think it is quite unfortunate if a simple update of Sonar introduces thousands of issues to your codebase.

I would appreciate if it could be controlled on rule level to which scope it should be applied.

Best,
Thomas

Hi @Thomas_Mauch,

Unfortunately, there aren’t any significant updates on this issue. However, I recommend using the Ignore Issues on Multiple Criteria feature at either the global or project level to reduce unnecessary alerts.

For example, to exclude java:S1874 from all test files, you could set up a rule similar to the one shown below:

Hope this helps!