format QL

This commit is contained in:
Alex Ford
2021-06-04 16:12:39 +01:00
parent 57c04266e3
commit f8a77b9854
2 changed files with 6 additions and 2 deletions

View File

@@ -104,7 +104,9 @@ class ActiveRecordSqlExecutionRange extends SqlExecution::Range {
ExprCfgNode sql;
ActiveRecordSqlExecutionRange() {
exists(PotentiallyUnsafeSqlExecutingMethodCall mc | this.asExpr().getNode() = mc.getSqlFragmentSinkArgument())
exists(PotentiallyUnsafeSqlExecutingMethodCall mc |
this.asExpr().getNode() = mc.getSqlFragmentSinkArgument()
)
}
override DataFlow::Node getSql() { result.asExpr() = sql }

View File

@@ -7,4 +7,6 @@ query predicate activeRecordSqlExecutionRanges(ActiveRecordSqlExecutionRange ran
query predicate activeRecordModelClassMethodCalls(ActiveRecordModelClassMethodCall call) { any() }
query predicate potentiallyUnsafeSqlExecutingMethodCall(PotentiallyUnsafeSqlExecutingMethodCall call) { any() }
query predicate potentiallyUnsafeSqlExecutingMethodCall(PotentiallyUnsafeSqlExecutingMethodCall call) {
any()
}