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

Adding rule based DL cases for typescript. #95

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

AksChaudhari
Copy link
Contributor

Add non compliant and compliant samples for typescript detectors.

Note: All the test cases have 100% recall and precision.

Copy link
Contributor

@saurabh-amazon saurabh-amazon left a comment

Choose a reason for hiding this comment

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

Reviewed all changes. Changes look ok. Approved.

Comment on lines +12 to +14
// Compliant: Trusted user input is being passed into dynamically executable code.
let calculated: number = eval("2 + 3");
res.send("Addition has been calculated");
Copy link
Contributor

Choose a reason for hiding this comment

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

how it related to the user input?

Comment on lines 28 to 30
// Noncompliant: xfwd's defaults value is true.
xfwd: true
});
Copy link
Contributor

Choose a reason for hiding this comment

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

there should be 1 default value of xfwd, is it true or false?

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.

3 participants