Hi @edufelipe,
I had a look at the logs from your latest analysis and found the cause of the warning.
The scanner is picking up binary files: PNGs, JPGs, fonts (TTF, WOFF, WOFF2), MP3s, MP4s, and other static assets in your server/static/, server/widgets/static/, and server/filebrowser/static/ directories. The default behavior is to attempting to read them as UTF-8 source code. Since they’re binary, it hits invalid characters on every one of them, which is what triggers the “problems with file encoding” warning.
The fix is to configure the scanner to skip those files. Since you’re using automatic analysis, you can do this by adding a .sonarcloud.properties file to the root of your repository with the following:
sonar.exclusions=**/*.png,**/*.jpg,**/*.jpeg,**/*.gif,**/*.ico,**/*.webp,**/*.ttf,**/*.woff,**/*.woff2,**/*.eot,**/*.mp3,**/*.mp4,**/*.gz
Alternatively, you can exclude by directory if you’d prefer:
sonar.exclusions=server/static/**,server/widgets/static/**,server/filebrowser/static/**,specs/**
This is the only place configuration changes can be made in Autoscan, there’s no UI for it, it has to go in .sonarcloud.properties at the repo root.
Once that file is committed and the next analysis runs, the binary files will be excluded and the warning should disappear.
Hope that helps.
Best regards,
Stevan