mirror of
https://github.com/github/codeql.git
synced 2026-04-25 00:35:20 +02:00
JS: Treat d.ts as a single extension in Folder.getJavaScriptFile
This commit is contained in:
@@ -33,6 +33,8 @@ int getFileExtensionPriority(string ext) {
|
||||
ext = "json" and result = 8
|
||||
or
|
||||
ext = "node" and result = 9
|
||||
or
|
||||
ext = "d.ts" and result = 10
|
||||
}
|
||||
|
||||
int prioritiesPerCandidate() { result = 3 * (numberOfExtensions() + 1) }
|
||||
|
||||
Reference in New Issue
Block a user