-
ALM used: GitHub
-
CI system used: Jenkins CI
-
Scanner command used when applicable:
mvn -Duser.home=/home//slave/workspace/CI-PR-1111/.home org.sonarsource.scanner.maven:sonar-maven-plugin:sonar --batch-mode -pl --also-make --no-snapshot-updates -Psonar -Dsonar -Dsonar.projectName= -Dsonar.projectKey= -Dsonar.organization= -Dsonar.host.url=https://sonarcloud.io -Dsonar.token= -Dsonar.pullrequest.branch=other/branchname -Dsonar.pullrequest.key=1111 -Dsonar.pullrequest.base=develop -Dmaven.repo.local=/home//slave/workspace/CI-PR-1111/.home/.m2/repository -f /home//slave/workspace/CI-PR-1111/Parent/pom.xml
-
Languages of the repository: Java, JS, TS
-
Warnings in the command execution log:
[WARNING] Invalid character encountered in file <hidden for privacy>.dll at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property ‘sonar.sourceEncoding’.….
[WARNING] Invalid character encountered in file <hidden for privacy>.png at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property ‘sonar.sourceEncoding’.
[WARNING] Invalid character encountered in file <hidden for privacy>.woff at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property ‘sonar.sourceEncoding’.
We face multiple warnings about encoding inside BINARY files. Some details:
-
It affects only pull requests (both from short-lived and long-lived branches) but not affects branch analyzing
-
It started to happen between April 2025 and August 2025 (we cannot triage more precisely because we don’t have CI logs in-between).
It seems that something redundant is done: why does Sonar try to parse binary files?