Merge pull request #5586 from asgerf/js/tsconfig-file-inclusion-handling

Approved by esbena
This commit is contained in:
CodeQL CI
2021-04-09 02:50:51 -07:00
committed by GitHub
14 changed files with 44 additions and 12 deletions

View File

@@ -0,0 +1,15 @@
/**
* @name Import graph
* @description An edge in the import graph.
* @kind problem
* @problem.severity recommendation
* @id js/meta/alerts/import-graph
* @tags meta
* @precision very-low
*/
import javascript
from Import imprt, Module target
where target = imprt.getImportedModule()
select imprt, "Import targeting $@", target, target.getFile().getRelativePath()