Skip to content

feat: log SQ report file path and size to console after generation#47

Merged
304NotModified merged 1 commit intomainfrom
copilot/log-sq-report-console
Apr 1, 2026
Merged

feat: log SQ report file path and size to console after generation#47
304NotModified merged 1 commit intomainfrom
copilot/log-sq-report-console

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 1, 2026

When the SonarQube report is written, log the file path and size (in bytes) to the console.

Example output:

SonarQube report written to: /path/to/report.json (1234 bytes)

Changes:

  • Added GetFileSize(string path) to IFileSystem interface
  • Implemented in RealFileSystem using new FileInfo(path).Length
  • Implemented in both MockFileSystem test helpers (returns MemoryStream.Length)
  • Injected IFileSystem into ValidatorRunner and logs after WriteReportAsync completes
  • Updated existing tests to pass fileSystem to the ValidatorRunner constructor

@304NotModified 304NotModified marked this pull request as ready for review April 1, 2026 18:08
@304NotModified 304NotModified merged commit b6a62fa into main Apr 1, 2026
5 checks passed
@304NotModified 304NotModified deleted the copilot/log-sq-report-console branch April 1, 2026 18:08
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.

2 participants