Files
codeql/python/ql/lib/semmle/python/templates/Templates.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

16 lines
350 B
Plaintext

import python
abstract class Template extends Module { }
class SpitfireTemplate extends Template {
SpitfireTemplate() { this.getKind() = "Spitfire template" }
}
class PyxlModule extends Template {
PyxlModule() {
exists(Comment c | c.getLocation().getFile() = this.getFile() |
c.getText().regexpMatch("# *coding.*pyxl.*")
)
}
}