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 false positive for global navigation check in typescript #77

Merged
merged 1 commit into from
Dec 16, 2020

Conversation

bchurchill
Copy link
Contributor

Typescript code would always have the LIMIT_NAVIGATION_GLOBAL_CHECK fail. This was happening because the atomic LIMIT_NAVIGATION_JS_CHECK was looking for an AST node of type Literal, instead of using AstHelper.StringLiteral. As a result, the check worked properly for javascript code but not typescript.

This PR:

  • fixes this particular issue
  • adds a test case
  • makes the coding style consistent across the CustomArgumentsJSCheck as well

@phosphore
Copy link
Contributor

Ooops! My bad 😇
LGTM

@phosphore phosphore merged commit 73c1d5b into doyensec:master Dec 16, 2020
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