mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Locally these seem to get rid of the compilation warnings, but of course CI is the true arbiter here.
13 lines
374 B
Plaintext
13 lines
374 B
Plaintext
import javascript
|
|
|
|
overlay[local]
|
|
class CustomImport extends DataFlow::ModuleImportNode::Range, DataFlow::CallNode {
|
|
CustomImport() { this.getCalleeName() = "customImport" }
|
|
|
|
override string getPath() { result = this.getArgument(0).getStringValue() }
|
|
}
|
|
|
|
from string path, CustomImport imprt
|
|
where imprt = DataFlow::moduleImport(path)
|
|
select path, imprt.getPath(), imprt
|