which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
SonarQube v10.6
how is SonarQube deployed: zip, Docker, Helm
Docker
what are you trying to achieve
Scanning a frontend repo using react and seeing that the parser seems to be broken for certain things like < th key=... gives Unknown property 'h k' found.
Can you tell me why you think the parser is broken? Typically when parsing fails, there are no issues in the file after the point where that happened. On the contrary, having this issue indicates to me that parsing worked.
My assumption was that the parsers returns ‘h k’ instead of ‘key’ which I assume is what it wants to? But doesn’t have to be the parsers, I don’t know the system underneath, the point is only that ‘h k’ is not a property so something seems wrong.
Thanks for the explanation. I did notice that the issue message doesn’t seem to match up with the highlighted code, but… I’m not a TypeScript developer.
Yes S6747. I might be able to add the code later but we’ve had so many of these that I’d assume it’s not so hard to reproduce unless all of our projects have the same kind of issue. In general our projects are using nextjs, react and emotionjs of that helps.