Comments (2)
⌨️ Activity: Find the 1st argument to all calls to $
We want to identify the expression that is used as the first argument for each call, such as in $(<first-argument>)
.
- Edit the file
calls-to-dollar-arg.ql
and start by copying your previous query. - Use the auto-completion feature to find the class that represents simple expressions, and declare a variable (eg.
dollarArg
) that belongs to this class. - Use auto-completion again on your
dollarCall
variable of typeCallExpr
to guess the predicate that gets the argument at a 0-based index. Start typingget
and browse the predicates, and their contextual documentation. - Combine this with your logic from the previous step with an
and
in thewhere
clause. - Once you're happy with the results, submit your solution.
from codeql-javascript-unsafe-jquery-plugin.
Ooops! The query you submitted in b472b25 didn't find the right results. Have a look at the comment.
To submit a new iteration of your query, you just have to push a new commit to the same branch (the default branch or the PR branch).
from codeql-javascript-unsafe-jquery-plugin.
Related Issues (4)
- Welcome!
- Set up your IDE HOT 2
- Step 3 - Your first query HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codeql-javascript-unsafe-jquery-plugin.