Skip to content

JS: handle case-insensitive lodash imports #640

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

Merged
merged 3 commits into from
Jan 14, 2019

Conversation

asger-semmle
Copy link
Contributor

NPM package names are always lower-case, so the package lodash.mergewith does not match the member _.mergeWith. This PR makes LodashUnderscore::member case insensitive.

@asger-semmle asger-semmle requested a review from a team as a code owner December 7, 2018 13:28
@xiemaisi xiemaisi added the JS label Dec 13, 2018
@xiemaisi
Copy link

Test failure.

@asger-semmle
Copy link
Contributor Author

Adding bindingset to LodashUnderscore::member was technically a breaking change, which was also why the test failed. So instead of doing that, I've now listed the names of all lodash members in a predicate.

Evaluation on big-apps looks ok.

PTAL

@asger-semmle
Copy link
Contributor Author

The test failure seems to be from Jenkins having trouble, but there's no rush to land this so I'll just retry the tests after 1.19 is out.

@ghost
Copy link

ghost commented Jan 8, 2019

Time for a retry?

@asger-semmle
Copy link
Contributor Author

Should be ready to land - the test failures are for C++ so I assume they're unrelated.

ghost
ghost previously approved these changes Jan 10, 2019
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Approved, but I have a minor meta-documentation concern.

@semmle-qlci semmle-qlci merged commit 955bad0 into github:master Jan 14, 2019
cklin pushed a commit that referenced this pull request May 23, 2022
Release preparation for version 2.7.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants