Skip to content

Fix filtering of issues without existing files#1242

Merged
pascalberger merged 5 commits intocake-contrib:developfrom
pascalberger:feature/console-filter-fix
Sep 3, 2025
Merged

Fix filtering of issues without existing files#1242
pascalberger merged 5 commits intocake-contrib:developfrom
pascalberger:feature/console-filter-fix

Conversation

@pascalberger
Copy link
Copy Markdown
Member

Fixes filtering of issues without file path or where file does not exists for diagnostics output in Console report format

Copilot AI review requested due to automatic review settings September 3, 2025 20:47
@pascalberger pascalberger requested a review from a team as a code owner September 3, 2025 20:47
@pascalberger pascalberger added Bug Area:Reporting:Console Reporting to console labels Sep 3, 2025
@pascalberger pascalberger added this to the 5.9.0 milestone Sep 3, 2025
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a bug in the Console issue report generator where the wrong variable was being used to calculate and log the number of filtered issues. The fix ensures accurate reporting of how many issues were filtered out because they don't have file paths or their files don't exist.

  • Fixed variable reference in filtering count calculation for diagnostic logging
  • Added comprehensive test coverage for the filtering behavior with three test scenarios

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/Cake.Issues.Reporting.Console/ConsoleIssueReportGenerator.cs Fixed variable name from enumeratedIssues to diagnosticIssues for accurate filtering count
src/Cake.Issues.Reporting.Console.Tests/ConsoleIssueReportGeneratorTests.cs Added test class with three tests covering filtering scenarios and helper method for file path detection

@pascalberger pascalberger merged commit 79270b1 into cake-contrib:develop Sep 3, 2025
150 checks passed
@pascalberger pascalberger deleted the feature/console-filter-fix branch September 3, 2025 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area:Reporting:Console Reporting to console Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants