Sonar can't even detect a variable that was used inside a function

Please provide

  • Operating system: OSX
  • SonarLint plugin version:
  • Programming language you’re coding in: Kotlin
  • Is connected mode used: yes
    • Connected to SonarCloud

And a thorough description of the problem / question:

The question is simple and is described within the Screenshot. Sorry about the Froge image, it was taken from a public share in our company.

The problem is, this is an amazing tool. But it’s an absolute failure of a tool when it comes to very simple things.

Why can’t it detect a simple variable being used in the function and it says variable is not being used ? This is unacceptable. Is it because of the RX calls and syntax ?

False-positives happen.

This smells a bit like an issue that was reported in the past:

You can see in that thread there’s an open ticket – in the meantime, can you make sure your project is built?