The list of exceptions in Sonar Rule S107 Methods should not have too many parameters is lacking the Micronaut annotation after the Micronaut upgrade.
Since the version 3 Micronaut is using jakarta.* package names. And the jakarta.inject annotations are the default injection annotation instead of the javax.inject.
The second one has been already included in the exceptions for that Sonar Rule as a CDI constructor injection with javax.inject.Inject. I believe there should be the same exception for: CDI constructor injection with jakarta.inject.Inject.
Hey there.
Make sure to read this post before raising a thread here:
We are missing important information – like your SonarQube version and a snippet of code that raises a FP