* ci: run SonarQube Cloud analysis in CI with coverage
- New `sonarcloud` job: SonarScanner for .NET 12.0.0 (local tool) begin, build,
tests with Cobertura coverage and TRX results, end, which waits for the
quality gate. It passes without analysing when SONAR_TOKEN is not available
(fork and Dependabot pull requests).
- Coverage leaves out CaptureImage.UI and CaptureImage.App, which ui-tests and
publish-smoke exercise out of process.
- audit: check the .NET tools in .config/dotnet-tools.json against nuget.org's
vulnerability data (tool-audit.ps1); neither NuGet's audit nor the dependency
graph covers them.
- Dependabot: update dotnet-sonarscanner with the dev-tools group.
- Tests: await the async File APIs inside async tests (Sonar S6966).
- Docs: CLAUDE.md, CONTRIBUTING, ARCHITECTURE, SECURITY, README badges, CHANGELOG.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* ci(sonarcloud): leave CI scripts out of coverage, skip non-main branch runs
- PR 26's gate failed only on coverage: SonarQube Cloud counts PowerShell as
coverable code, so the 60 lines of tool-audit.ps1 were new, uncovered code.
`.github/**` joins the coverage exclusions.
- The free plan analyses main and pull requests only; a workflow_dispatch run
on another branch uploaded its report and then failed with "Organization is
not allowed to access data from non main branches". Such runs now pass
without analysing, like runs without SONAR_TOKEN.
- Icons and PNGs are project items the scanner read as UTF-8 text; exclude
them from the analysis.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>