Skip to content

Commit b31cf67

Browse files
fix(amazonq): reduce number of findings to 30 as a quick fix (aws#2318)
Co-authored-by: Blake Lazarine <[email protected]>
1 parent a949ac0 commit b31cf67

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/aws-lsp-codewhisperer/src/language-server/agenticChat/tools/qCodeAnalysis/codeReview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class CodeReview {
4444
private static readonly POLLING_INTERVAL_MS = 10000 // 10 seconds
4545
private static readonly UPLOAD_INTENT = 'AGENTIC_CODE_REVIEW'
4646
private static readonly SCAN_SCOPE = 'AGENTIC'
47-
private static readonly MAX_FINDINGS_COUNT = 40
47+
private static readonly MAX_FINDINGS_COUNT = 30
4848

4949
private static readonly ERROR_MESSAGES = {
5050
MISSING_CLIENT: 'CodeWhisperer client not available',

server/aws-lsp-codewhisperer/src/language-server/agenticChat/tools/qCodeAnalysis/codeReviewConstants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export const CODE_REVIEW_TOOL_DESCRIPTION = [
181181
'The tool will generate some findings grouped by file',
182182
'Use following format STRICTLY to display the result of this tool for different scenarios:',
183183
'- When findings are present, you must inform user that you have completed the review of {file name / folder name / workspace} and found several issues that need attention. To inspect the details, and get fixes for those issues use the Code Issues panel.',
184-
' - When tool output message tells that findings were limited due to high count, you must inform the user that since there were lots of findings, you have included the top 40 findings only.',
184+
' - When tool output message tells that findings were limited due to high count, you must inform the user that since there were lots of findings, you have included the top 30 findings only.',
185185
'- When no findings are generated by the tool, you must tell user that you have completed the review of {file name / folder name / workspace} and found no issues.',
186186
].join('\n')
187187

0 commit comments

Comments
 (0)