Skip to content

Commit 858c7ce

Browse files
committed
Ruby: Add consistency query for extraction errors
1 parent e6dc36b commit 858c7ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ruby/ql/consistency-queries/AstConsistency.ql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import codeql.ruby.AST
22
import codeql.ruby.ast.internal.Synthesis
3+
import codeql.ruby.Diagnostics
34

45
query predicate missingParent(AstNode node, string cls) {
56
not exists(node.getParent()) and
@@ -28,3 +29,5 @@ query predicate multipleToString(AstNode n, string s) {
2829
s = strictconcat(n.toString(), ",") and
2930
strictcount(n.toString()) > 1
3031
}
32+
33+
query predicate extractionError(ExtractionError error) { any() }

0 commit comments

Comments
 (0)