Ruby: Add consistency query for extraction errors

This commit is contained in:
Tom Hvitved
2024-06-04 11:26:25 +02:00
parent e6dc36b2c4
commit 858c7cead2

View File

@@ -1,5 +1,6 @@
import codeql.ruby.AST
import codeql.ruby.ast.internal.Synthesis
import codeql.ruby.Diagnostics
query predicate missingParent(AstNode node, string cls) {
not exists(node.getParent()) and
@@ -28,3 +29,5 @@ query predicate multipleToString(AstNode n, string s) {
s = strictconcat(n.toString(), ",") and
strictcount(n.toString()) > 1
}
query predicate extractionError(ExtractionError error) { any() }