Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(amazonq): ignored lines should not show up in /review scan issues #6659

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zuoyaofu
Copy link
Contributor

@zuoyaofu zuoyaofu commented Feb 21, 2025

Problem

When running a new /review scan, Q fails to respect previously added ignore line, causing ignored issues to reappear in subsequent reviews.

Solution

Fixed incorrect filter logic on ignoring single line issue


  • Treat all work as PUBLIC. Private feature/x branches will not be squash-merged at release time.
  • Your code changes must meet the guidelines in CONTRIBUTING.md.
  • License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link

  • This pull request modifies code in src/* but no tests were added/updated.
    • Confirm whether tests should be added or ensure the PR description explains why tests are not required.

@zuoyaofu zuoyaofu marked this pull request as ready for review February 21, 2025 23:54
@zuoyaofu zuoyaofu requested review from a team as code owners February 21, 2025 23:54
const aggregatedCodeScanIssue: AggregatedCodeScanIssue = {
filePath: filePath,
issues: issues.map((issue) => mapRawToCodeScanIssue(issue, editor, jobId, scope)),
issues: issues.map((issue) => mapRawToCodeScanIssue(issue, jobId, scope, document)),
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: you can make this change even smaller by keeping the position of the editor/document argument the same

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