Skip to content

Query run by aeisenberg against 1 javascript repositories #1183

Closed
@github-actions

Description

@github-actions

Query

Click to expand
/**
 * @name Unwanted dependency on vscode API
 * @kind problem
 * @problem.severity error
 * @id vscode-codeql/assert-pure
 * @description The modules stored under `pure` and tested in the `pure-tests`
 * are intended to be "pure".
 */
import javascript

class VSCodeImport extends ASTNode {
  VSCodeImport() {
    this.(Import).getImportedPath().getValue() = "vscode"
  }
}

from Module m, VSCodeImport v
where
  m.getFile().getParentContainer().getRelativePath().regexpMatch(".*src/pure/.*")  and
  m.getAnImportedModule*().getAnImport() = v
select m, "This module is not pure: it has a transitive dependency on the vscode API imported $@", v, "here"

Results

Repository Results
github/vscode-codeql No results

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions