Skip to content

Sonar: leave binary files out of the scan, and clear master's open issues - #517

Merged
dhobi merged 2 commits into
masterfrom
sonar-binaries
Oct 6, 2026
Merged

dhobi merged 2 commits into
masterfrom
sonar-binaries

Conversation

@dhobi

@dhobi dhobi commented Oct 6, 2026 •

Copy link
Copy Markdown
Owner

sonar.sources=. made Sonar read every PNG, JPG, GIF, WebP, AVIF, font, sound, .stg and .ti save as source text. The scan logged "Invalid character encountered … for encoding UTF-8" for 13 of them (for example in the SonarQube Cloud job on #516).

  • Binary files are left out of the scan: added to sonar.exclusions, and to a new sonar.test.exclusions for the fixtures under tests/. None of them were code.
  • The last warning: it was not binary. engine/src/df/text.ts:106 compared against a literal U+FFFD; it is now written as "\\uFFFD".
  • Master's four open issues:
    • calc-worker.ts: getSave/putSave were async with nothing to await (S7503); they now return a resolved promise.
    • speedrun-page.ts: imported ./editions twice (S3863).

🤖 Generated with Claude Code

dhobi and others added 2 commits October 6, 2026 23:16
sonar.sources=. made Sonar read every image, font, sound and save as text and
warn that it is not UTF-8, once per file.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…escape

calc-worker.ts's getSave/putSave were async with nothing to await (S7503);
speedrun-page.ts imported ./editions twice (S3863). text.ts compared against
a literal replacement character, which the scan read as an invalid byte.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@dhobi dhobi changed the title Sonar: leave binary files out of the scan Sonar: leave binary files out of the scan, and clear master's open issues Oct 6, 2026
@sonarqubecloud

sonarqubecloud Bot commented Oct 6, 2026

Copy link
Copy Markdown

@dhobi
dhobi merged commit ca720e6 into master Oct 6, 2026
4 checks passed
@dhobi
dhobi deleted the sonar-binaries branch October 6, 2026 23:54
@dhobi dhobi mentioned this pull request Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant