Skip to content

fix(detect-child-process): false positive for destructuring with exec#102

Merged
nzakas merged 2 commits intomainfrom
issue64
Dec 13, 2022
Merged

fix(detect-child-process): false positive for destructuring with exec#102
nzakas merged 2 commits intomainfrom
issue64

Conversation

@ota-meshi
Copy link
Copy Markdown
Member

@ota-meshi ota-meshi commented Dec 8, 2022

This PR fixes false positives in detect-child-process.

detect-child-process rule did not understand destructuring assignment and was incorrectly reporting non-identifier exec().
This PR changes the detect-child-process rule to guard non-identifiers and correctly track variables.

fixes #64

Copy link
Copy Markdown
Contributor

@nzakas nzakas left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks.

@nzakas nzakas merged commit 657921a into main Dec 13, 2022
@nzakas nzakas deleted the issue64 branch December 13, 2022 01:45
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.

detect-child-process false-positive with exec

2 participants