mirror of
https://github.com/github/codeql.git
synced 2026-01-08 20:20:34 +01:00
patch upper-case acronyms to be PascalCase
This commit is contained in:
@@ -139,12 +139,12 @@ predicate whitelist(Expr e) {
|
||||
* The return value of `e` may have other uses besides the truthiness check,
|
||||
* but if the truthiness check always goes one way, it still indicates an error.
|
||||
*/
|
||||
predicate isConditional(ASTNode cond, Expr e) {
|
||||
predicate isConditional(AstNode cond, Expr e) {
|
||||
isExplicitConditional(cond, e) or
|
||||
e = cond.(LogicalBinaryExpr).getLeftOperand()
|
||||
}
|
||||
|
||||
from ASTNode cond, DataFlow::AnalyzedNode op, boolean cv, ASTNode sel, string msg
|
||||
from AstNode cond, DataFlow::AnalyzedNode op, boolean cv, AstNode sel, string msg
|
||||
where
|
||||
isConditional(cond, op.asExpr()) and
|
||||
cv = op.getTheBooleanValue() and
|
||||
|
||||
Reference in New Issue
Block a user