File tree Expand file tree Collapse file tree 9 files changed +27
-2
lines changed
Expand file tree Collapse file tree 9 files changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -2382,8 +2382,6 @@ module YAML {
23822382 // to not expose the entire `File` API on `QlPack`.
23832383 private newtype TQLPack = MKQlPack ( File file ) { file .getBaseName ( ) = "qlpack.yml" }
23842384
2385- YAMLEntry test ( ) { not result .isRoot ( ) }
2386-
23872385 /**
23882386 * A `qlpack.yml` file.
23892387 */
Original file line number Diff line number Diff line change 1+ getTarget
12| Foo.qll:5:26:5:30 | PredicateCall | Foo.qll:3:1:3:26 | ClasslessPredicate foo |
23| Foo.qll:10:21:10:25 | PredicateCall | Foo.qll:8:3:8:28 | ClassPredicate bar |
34| Foo.qll:14:30:14:40 | MemberCall | Foo.qll:10:3:10:27 | ClassPredicate baz |
89| Foo.qll:31:5:31:12 | PredicateCall | Foo.qll:24:3:24:32 | ClasslessPredicate alias0 |
910| Foo.qll:36:36:36:65 | MemberCall | file://:0:0:0:0 | replaceAll |
1011| Foo.qll:38:39:38:67 | MemberCall | file://:0:0:0:0 | regexpCapture |
12+ | packs/src/SrcThing.qll:4:3:4:8 | PredicateCall | packs/lib/LibThing/Foo.qll:1:1:1:30 | ClasslessPredicate foo |
13+ | packs/src/SrcThing.qll:5:3:5:8 | PredicateCall | packs/src/SrcThing.qll:8:1:8:30 | ClasslessPredicate bar |
14+ dependsOn
15+ | packs/src/qlpack.yml:1:1:1:4 | ql-testing-src-pack | packs/lib/qlpack.yml:1:1:1:4 | ql-testing-lib-pack |
Original file line number Diff line number Diff line change 11import ql
22
33query AstNode getTarget ( Call call ) { result = call .getTarget ( ) }
4+
5+ query YAML:: QLPack dependsOn ( YAML:: QLPack pack ) { result = pack .getADependency ( ) }
Original file line number Diff line number Diff line change 1+ predicate foo ( int i ) { i = 3 }
Original file line number Diff line number Diff line change 1+ name : ql-testing-lib-pack
2+ version : 0.1.0
3+ extractor : ql-test-stuff
Original file line number Diff line number Diff line change 1+ import LibThing.Foo
2+
3+ query predicate test ( int i ) {
4+ foo ( i ) and
5+ bar ( i )
6+ }
7+
8+ predicate bar ( int i ) { i = 4 }
Original file line number Diff line number Diff line change 1+ name : ql-testing-src-pack
2+ version : 0.1.0
3+ dependencies :
4+ ql-testing-lib-pack : " *"
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ type NUL && "%CODEQL_DIST%\codeql.exe" database index-files ^
44 --prune=**/*.testproj ^
55 --include-extension=.ql ^
66 --include-extension=.qll ^
7+ --include-extension=.dbscheme ^
8+ --include-extension=.yml ^
79 --size-limit=5m ^
810 --language=ql ^
911 " %CODEQL_EXTRACTOR_QL_WIP_DATABASE% "
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ exec "${CODEQL_DIST}/codeql" database index-files \
66 --prune=" **/*.testproj" \
77 --include-extension=.ql \
88 --include-extension=.qll \
9+ --include-extension=.dbscheme \
10+ --include-extension=.yml \
911 --size-limit=5m \
1012 --language=ql \
1113 --working-dir=.\
You can’t perform that action at this time.
0 commit comments