Parser skips a letter, leading to false positives

Please provide

  • Operating system: Windows 11 - Version 10.0.22621 Build 22621
  • SonarQube for IntelliJ plugin version: 10.22.0.81244
  • IntelliJ version: Rider - 2025.1.1
  • Programming language you’re coding in: Typescript
  • Is connected mode used: Yes
    • SonarQube Cloud, SonarQube Server, or SonarQube Community Build? (if one of the latter two, which version?): Cloud

lassName is not considered a valid property

It does not seem to find the ‘c’ at the start of <div className=‘example’>

This is likely related to the following, and I can confirm that the file is utf-8 with BOM

So this still seems to be an issue

Hey @kassamina, thanks for reaching out to us.

I think you might be right, it’s probably related to the thread you shared. I suspect you are using UTF-8 with BOM in IntelliJ, could you check and maybe confirm it if works without BOM?

For reference, we have this bug ticket related to it.

I can confirm that sonarQube seems to be working correctly after uising dos2unix on the file.

This isn’t a good long term solution, but it does help confirm the source of the issue.

1 Like

Thank you for confirming. I have increased the priority on this bug ticket, although I cannot tell you when it will be tackled.

2 Likes