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

In the patch there should have been unused variable major sonar issue, but sonarQube does not show the issue on dashboard for java and javascript.

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:

SonarQube * Version 9.1 (build 47736)

This below JS code we are using and param2 is unused param. Still its not showing “Unused function parameters should be removed” issue in dashboard.

function sum(param1, param2) {
return param1;
}