mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
Ruby: Add consistency query for extraction errors
This commit is contained in:
@@ -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() }
|
||||
|
||||
Reference in New Issue
Block a user