Files
codeql/python/ql/lib/semmle/python/dependencies/DependencyKind.qll
Andrew Eisenberg 3660c64328 Packaging: Rafactor Python core libraries
Extract the external facing `qll` files into the codeql/python-all
query pack.
2021-08-24 13:23:45 -07:00

28 lines
789 B
Plaintext

import semmle.python.dependencies.Dependencies
/**
* A library describing an abstract mechanism for representing dependency categories.
*/
/*
* A DependencyCategory is a unique string key used by Architect to identify different categories
* of dependencies that might be viewed independently.
* <p>
* The string key defining the category must adhere to the isValid(), otherwise it will not be
* accepted by Architect.
* </p>
*/
abstract class DependencyKind extends string {
bindingset[this]
DependencyKind() { this = this }
/* Tech inventory interface */
/**
* Identify dependencies associated with this category.
* <p>
* The source element is the source of the dependency.
* </p>
*/
abstract predicate isADependency(AstNode source, Object target);
}