We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a70ed71 commit 073302fCopy full SHA for 073302f
1 file changed
ruby/ql/consistency-queries/RegExpConsistency.ql
@@ -6,3 +6,9 @@ query predicate nonUniqueChild(RegExpParent parent, int i, RegExpTerm child) {
6
}
7
8
query predicate cyclic(RegExpParent parent) { parent = parent.getAChild+() }
9
+
10
+query predicate nonConsecutive(RegExpParent parent, int i) {
11
+ exists(parent.getChild(i)) and
12
+ i > 0 and
13
+ not exists(parent.getChild(i - 1))
14
+}
0 commit comments