Skip to content

Commit 014c4e8

Browse files
committed
C#: Update qlpath to fix metric queries.
The Metrics folder has a queries.xml file which is required when building a full distribution, as the Metrics folder gets copied into odasa-csharp-metrics directory. However, in QL for Eclipse this doesn't compile because it prevents import lookup at the top level. Modifying the qlpath file to include the top-level directory on the library path fixes the problem.
1 parent ea9bff0 commit 014c4e8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

csharp/ql/src/.qlpath

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
22
<ns:qlpath xmlns:ns="https://semmle.com/schemas/qlpath">
3-
<librarypath></librarypath>
3+
<librarypath>
4+
<path>/semmlecode-csharp-queries</path>
5+
</librarypath>
46
<dbscheme kind="WORKSPACE">semmlecode-csharp-queries/semmlecode.csharp.dbscheme</dbscheme>
5-
<defaultImports><defaultImport>csharp</defaultImport></defaultImports>
7+
<defaultImports>
8+
<defaultImport>csharp</defaultImport>
9+
</defaultImports>
610
</ns:qlpath>

0 commit comments

Comments
 (0)