We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a8a822 commit 7dda951Copy full SHA for 7dda951
ql/ql/src/codeql_ql/ast/Yaml.qll
@@ -64,4 +64,15 @@ class QlRefDocument extends YamlDocument {
64
value = n.lookup("postprocess").(YamlSequence).getElement(_)
65
)
66
}
67
+
68
+ predicate isPrintAst() {
69
+ this.getFile().getStem() = "PrintAst"
70
+ or
71
+ exists(YamlMapping n, YamlScalar value |
72
+ n.getDocument() = this and
73
+ value.getValue().matches("%PrintAst%")
74
+ |
75
+ value = n.lookup("query")
76
+ )
77
+ }
78
ql/ql/src/queries/style/QlRefInlineExpectations.ql
@@ -11,5 +11,7 @@ import ql
11
import codeql_ql.ast.Yaml
12
13
from QlRefDocument f
14
-where not f.usesInlineExpectations()
+where
15
+ not f.usesInlineExpectations() and
16
+ not f.isPrintAst()
17
select f, "Query test does not use inline test expectations."
0 commit comments