Skip to content

Commit 62adb31

Browse files
committed
Add more import paths for xmlpath
1 parent 9d86619 commit 62adb31

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

go/ql/lib/ext/github.com.go-xmlpath.xmlpath.model.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ extensions:
55
data:
66
- ["xmlpath", "gopkg.in/xmlpath"]
77
- ["xmlpath", "github.com/go-xmlpath/xmlpath"]
8+
- ["xmlpath", "github.com/crankycoder/xmlpath"]
9+
- ["xmlpath", "launchpad.net/xmlpath"]
10+
- ["xmlpath", "github.com/masterzen/xmlpath"]
11+
- ["xmlpath", "github.com/going/toolkit/xmlpath"]
12+
- ["xmlpath", "gopkg.in/go-xmlpath/xmlpath"]
813
- addsTo:
914
pack: codeql/go-all
1015
extensible: sinkModel

go/ql/lib/semmle/go/frameworks/XPath.qll

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ deprecated module XmlPath {
4343
* Gets the package name `github.com/go-xmlpath/xmlpath` or `gopkg.in/xmlpath`.
4444
*/
4545
deprecated string packagePath() {
46-
result = package(["github.com/go-xmlpath/xmlpath", "gopkg.in/xmlpath"], "")
46+
result =
47+
package([
48+
"github.com/go-xmlpath/xmlpath", "gopkg.in/xmlpath", "github.com/crankycoder/xmlpath",
49+
"launchpad.net/xmlpath", "github.com/masterzen/xmlpath",
50+
"github.com/going/toolkit/xmlpath", "gopkg.in/go-xmlpath/xmlpath"
51+
], "")
4752
}
4853
}

0 commit comments

Comments
 (0)