mirror of
https://github.com/github/codeql.git
synced 2025-12-20 02:44:30 +01:00
17 lines
419 B
Plaintext
17 lines
419 B
Plaintext
import semmle.javascript.dependencies.FrameworkLibraries
|
|
|
|
class FooTools extends FrameworkLibrary {
|
|
FooTools() { this = "footools" }
|
|
}
|
|
|
|
class FooToolsInstance extends FrameworkLibraryInstance {
|
|
FooToolsInstance() {
|
|
exists(Comment c | c.getTopLevel() = this | c.getText().matches("%FooTools%"))
|
|
}
|
|
|
|
override predicate info(FrameworkLibrary fl, string v) {
|
|
fl instanceof FooTools and
|
|
v = "1.2.3"
|
|
}
|
|
}
|