Cannot suppress jsx false positive javascript:S1172 UnusedFunctionArgument in Intellij IDEA Ultimate

  • Operating system: macos
  • IDE name and flavor/env: Intellij IDEA Ultimate
  • SonarLint plugin version: 6.7.0
  • Is connected mode used: no
// noinspection ... <--- what would go here? tried: javascript:S1172, S1172, UnusedFunctionArgument, etc...
function(JSXElement) { // false javascript:S1172
  render(<JSXElement />);
}

I could disable the entire rule, but it’s useful apart from jsx.

Thanks!

Hello Thomas,

Welcome to Sonar community!

This is definitely a false positive that we need to address. In that regard, I created this ticket to fix it.

Thank you,
Yassin

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.