In the patch there is unused variable major sonar issue, but sonarQube does not show the issue

Hey there.

I would recommend providing more details (SonarQube version, for example) as well as a snippet of code where the issue is not raised that should be. You can read more about the required information in this post: