Skip to content

Commit 078151f

Browse files
author
Max Schaefer
committed
JavaScript: Add an (empty) Customizations.qll module.
Somewhat analogous to the `Options.qll` module in C++; see module comments for further explanation.
1 parent 2f84aac commit 078151f

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* Contains customizations to the standard library.
3+
*
4+
* This module is imported by `javascript.qll`, so any customizations defined here automatically
5+
* apply to all queries.
6+
*
7+
* Typical examples of customizations include adding new subclasses of abstract classes such as
8+
* `FileSystemAccess`, or the `Source` and `Sink` classes associated with the security queries
9+
* to model frameworks that are not covered by the standard library.
10+
*/
11+
12+
import javascript

javascript/ql/src/javascript.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
* Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML.
33
*/
44

5+
import Customizations
6+
57
import semmle.javascript.Aliases
68
import semmle.javascript.AMD
79
import semmle.javascript.AST

0 commit comments

Comments
 (0)