-
Notifications
You must be signed in to change notification settings - Fork 1.7k
JS: refactor UriLibraries.qll models to use DataFlow::moduleMember
#21
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thought, otherwise LGTM.
*/ | ||
DataFlow::SourceNode uridashjs() { | ||
result = DataFlow::moduleImport("uri-js") | ||
DataFlow::SourceNode uridashjsMember(string name) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make this predicate (and its brethren below) private?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can, but that will break all of the library-specific sanity tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, OK. Never mind, then.
LGTM. Did you check for any new results? |
No, the workers are too busy currently. I will try to do a local evaluation tonight. |
This PR adds no new results for our benchmark projects. |
This is a backwards-incompatible change since @esben-semmle, in future let's not expose predicates like these unless we absolutely have to. In this case, I think we could have avoided this by writing one set of tests for the whole library, which in turn would have avoided the backwards compatibility issues. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a change note or reintroduce predicates uridashjs
and friends.
JavaScript: Move LGTM suites to submodule.
Deprecation markers added. |
Thanks; could you squash the fixup, please? |
Done |
Extract 'this'-like value parameters
As discussed.
I do not think a change note is required for each library.