React Scans Flagging Random Substrings as Errors?

I know the template says not to share a screenshot, but I think this might be the best way to illustrate my very odd problem: For some reason, my repo is being flagged with hundreds of nonsensical errors where it looks as if the scanner is misreading my React code? I can’t for the life of me imagine why this is happening; the code looks perfectly fine and the substrings it’s complaining about appear to be selected at random.

This has been the case for the entire time I’ve been working on this repo — at first I assumed it would solve itself with time, but that hasn’t been the case.

Any help would be very much appreciated!

Hi @Eunomiac,

First thing that comes to mind is to check what encoding you have. These mis-matches can occur if you have an encoding other than ‘utf-8‘. Please see the help docs to try to fix it - JavaScript/TypeScript/CSS | Sonar Documentation

Kind regards,

Michal