We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In C code, single line if blocks are getting marked with CWE-483 which should apply to multi-line blocks according the the provided examples (e,g https://docs.aws.amazon.com/codeguru/detector-library/c/incorrect-block-delimitation/)
if
Example code block:
if (test) printf("Hello world\n");
This code will be marked with CWE-483
This is a single line block so there is no missing delimiter issue.
AWS: About
Amazon Q: About
OS: Linux x64 5.10.215-181.850.amzn2int.x86_64 Visual Studio Code extension host: 1.85.2 AWS Toolkit: 3.2.0 node: 18.15.0
OS: Linux x64 5.10.215-181.850.amzn2int.x86_64 Visual Studio Code extension host: 1.85.2 Amazon Q: 1.2.0 node: 18.15.0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Problem
In C code, single line
if
blocks are getting marked with CWE-483 which should apply to multi-line blocks according the the provided examples (e,g https://docs.aws.amazon.com/codeguru/detector-library/c/incorrect-block-delimitation/)Steps to reproduce the issue
Example code block:
This code will be marked with CWE-483
Expected behavior
This is a single line block so there is no missing delimiter issue.
System details (run
AWS: About
and/orAmazon Q: About
)The text was updated successfully, but these errors were encountered: