mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Ruby: add Customizations.qll file
This commit is contained in:
2
ruby/change-notes/2021-12-07-customizations.md
Normal file
2
ruby/change-notes/2021-12-07-customizations.md
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
lgtm,codescanning
|
||||||
|
* A new library, `Customizations.qll`, has been added, which allows for global customizations that affect all queries.
|
||||||
12
ruby/ql/lib/Customizations.qll
Normal file
12
ruby/ql/lib/Customizations.qll
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
/**
|
||||||
|
* Contains customizations to the standard library.
|
||||||
|
*
|
||||||
|
* This module is imported by `ruby.qll`, so any customizations defined here automatically
|
||||||
|
* apply to all queries.
|
||||||
|
*
|
||||||
|
* Typical examples of customizations include adding new subclasses of abstract classes such as
|
||||||
|
* `FileSystemAccess`, or the `Source` and `Sink` classes associated with the security queries
|
||||||
|
* to model frameworks that are not covered by the standard library.
|
||||||
|
*/
|
||||||
|
|
||||||
|
import ruby
|
||||||
@@ -1 +1,6 @@
|
|||||||
|
/**
|
||||||
|
* Provides classes for working with Ruby programs.
|
||||||
|
*/
|
||||||
|
|
||||||
|
import Customizations
|
||||||
import codeql.ruby.AST
|
import codeql.ruby.AST
|
||||||
|
|||||||
Reference in New Issue
Block a user