Skip to content

Conversation

@ctlai95
Copy link
Contributor

@ctlai95 ctlai95 commented Oct 23, 2024

Problem

Continuation of #890

Solution

Add definitions for code scan changes

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ctlai95 ctlai95 requested a review from a team as a code owner October 23, 2024 20:49
"description": "The compressed payload size of built jars in bytes of customer project context sent for security scan. This is only applicable for Java project"
},
{
"name": "codewhispererCodeScanInvocationSource",
Copy link
Contributor

@justinmk3 justinmk3 Oct 23, 2024

Choose a reason for hiding this comment

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

why not use the generic source field? it exists for this purpose.

"name": "source",
"type": "string",
"description": "The source of the operation"

},
{
"name": "codewhisperer_codeScanIssueIgnore",
"description": "Called when a code scan issue is ignored",
Copy link
Contributor

Choose a reason for hiding this comment

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

the description is a good place to explain non-obvious fields. e.g. could mention :

Suggested change
"description": "Called when a code scan issue is ignored",
"description": "User ignored a code scan issue. variant=all means the user ignored all issues. ",

}
]
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

looks like your editor might be removing the final EOL. please check your editor/IDE settings

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like it gets removed by running the validation script, but I can add it back manually

},
{
"name": "codewhisperer_codeScanIssueGenerateFix",
"description": "Called when a code scan issue fix is generated",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"description": "Called when a code scan issue fix is generated",
"description": "Generated a code scan issue. varant=... means ...",

@justinmk3 justinmk3 merged commit 6fed4ae into aws:main Oct 23, 2024
8 checks passed
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