mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
fix some instances of ql/pred-doc-style for JS
This commit is contained in:
@@ -30,7 +30,7 @@ predicate isRouteHandlerUsingCookies(Routing::RouteHandler handler) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if `route` is preceded by the cookie middleware `cookie`.
|
||||
* Holds if `route` is preceded by the cookie middleware `cookie`.
|
||||
*
|
||||
* A router handler following after cookie parsing is assumed to depend on
|
||||
* cookies, and thus require CSRF protection.
|
||||
@@ -135,7 +135,7 @@ API::CallNode passportAuthenticateCall() {
|
||||
}
|
||||
|
||||
/**
|
||||
* A call of form `passport.authenticate(..., { session: false })`, implying that the incoming
|
||||
* Gets a call of form `passport.authenticate(..., { session: false })`, implying that the incoming
|
||||
* request must carry its credentials rather than relying on cookies.
|
||||
*
|
||||
* In principle such routes should not be preceded by a cookie-parsing middleware, but to
|
||||
|
||||
@@ -172,7 +172,7 @@ query predicate edges(ASTNode pred, ASTNode succ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* A node in the `edge/2` relation above.
|
||||
* Holds if `node` is in the `edge/2` relation above.
|
||||
*/
|
||||
query predicate nodes(ASTNode node) {
|
||||
edges(node, _) or
|
||||
|
||||
@@ -12,7 +12,7 @@ import semmle.javascript.PrintAst
|
||||
import definitions
|
||||
|
||||
/**
|
||||
* The source file to generate an AST from.
|
||||
* Gets the source file to generate an AST from.
|
||||
*/
|
||||
external string selectedSourceFile();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user