Skip to content

Commit f85a47d

Browse files
committed
Ruby: add Customizations.qll file
1 parent a2dc505 commit f85a47d

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
lgtm,codescanning
2+
* A new library, `Customizations.qll`, has been added, which allows for global customizations that affect all queries.

ruby/ql/lib/Customizations.qll

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 `ruby.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 ruby

ruby/ql/lib/ruby.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1+
/**
2+
* Provides classes for working with Ruby programs.
3+
*/
4+
5+
import Customizations
16
import codeql.ruby.AST

0 commit comments

Comments
 (0)