mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Add GoFile and move HtmlFile to Files.qll
This commit is contained in:
@@ -264,3 +264,13 @@ class File extends ExtractedOrExternalFile {
|
||||
exists(this.getAChild())
|
||||
}
|
||||
}
|
||||
|
||||
/** A Go file. */
|
||||
class GoFile extends File {
|
||||
GoFile() { this.getExtension() = "go" }
|
||||
}
|
||||
|
||||
/** An HTML file. */
|
||||
class HtmlFile extends File {
|
||||
HtmlFile() { this.getExtension().regexpMatch("x?html?") }
|
||||
}
|
||||
|
||||
@@ -3,13 +3,6 @@
|
||||
import go
|
||||
|
||||
module HTML {
|
||||
/**
|
||||
* An HTML file.
|
||||
*/
|
||||
class HtmlFile extends File {
|
||||
HtmlFile() { this.getExtension().regexpMatch("x?html?") }
|
||||
}
|
||||
|
||||
/**
|
||||
* An HTML element.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user