mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
11 lines
365 B
Plaintext
11 lines
365 B
Plaintext
import codeql.ruby.ast.Variable
|
|
import codeql.ruby.ast.Parameter
|
|
|
|
query predicate parameterVariable(Parameter p, Variable v) { v = p.getAVariable() }
|
|
|
|
query predicate parameterNoVariable(Parameter p) { not exists(p.getAVariable()) }
|
|
|
|
query predicate parameterVariableNoAccess(Parameter p, Variable v) {
|
|
v = p.getAVariable() and strictcount(v.getAnAccess()) = 1
|
|
}
|