Sonarlint does not analyse Javascript files

Please provide

  • Operating system: Windows 11 22H2 (OS Build 22621.900) / WSL Ubuntu -22.04
  • SonarLint plugin version:
  • Programming language you’re coding in: Javascript
  • Is connected mode used: no
    • Connected to SonarCloud or SonarQube (and which version):

And a thorough description of the problem / question:
I’m working in a legacy code project, with the code in my WSL and docker to simulate our servers. We are trying to implement sonarlint to increase our code quality, it seems to work flawlessly in php or even twig, but when I try to analyse a javascript file it won’t run and instead says instantly, it won’t event take a second: “no issue found” however just by looking at the code you can see some problems. I have node version 18+ in both my wsl and my windows, and I test it in another project with the files located in my windows side and does not analyse it either so I would discard an issue with the WSL

Hi @OrdAlex

Is there any interesting or suspicious message/error when you enable verbose+analysis logs?

Hi Juelien!
Yes! it says "TypeError: Cannot read properties of undefined (reading ‘endsWith’)