Community Edition Version 8.9.9 (build 56886)
We updated last week and now there are this (imho) unwanted code smells everywhere
In an earlier post
Hi team,
Could you please explain your reasoning behind java:S6212 and why this is now considered a codesmell?
The jira ticket and the descriptions are vague
I do not believe that this is a code smell and it is more a matter of preference. In my case, I prefer and will continue to use the type explicitly
From the style guide : Local Variable Type Inference: Style Guidelines
Using var for declarations can improve code by reducing clutter, thereby letting more important information stand out…
you said that it was removed from the sonar way but it seems to have found its way back into it
can you remove it again please
Thanks
Marcel Rüedi
Colin
(Colin)
September 14, 2022, 8:59am
2
Hey there.
As @Quentin mentioned, it was only removed in SonarQube v9.x
So unless you can upgrade to v9.6 , your best bet is to copy this Quality Profile and remove the rule. Assuming no further drift, you can go back to using the built-in Quality Profile once you’ve upgraded to a v9.x version.
Ok thanks, I thought we upgraded to the newest but we upgraded to LTS