Files
codeql/python/ql/test/library-tests/dataflow/consistency/modeling-consistency.ql
2024-04-23 09:40:44 +02:00

8 lines
267 B
Plaintext

import python
import semmle.python.dataflow.new.DataFlow
query predicate parameterWithoutNode(Parameter p, string msg) {
not exists(DataFlow::ParameterNode node | p = node.getParameter()) and
msg = "There is no `ParameterNode` associated with this parameter."
}