mirror of
https://github.com/github/codeql.git
synced 2026-04-22 07:15:15 +02:00
Merge pull request #5673 from hvitved/csharp/customizations
C#: Add `Customizations.qll`
This commit is contained in:
2
csharp/change-notes/2021-04-14-customizations.md
Normal file
2
csharp/change-notes/2021-04-14-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
csharp/ql/src/Customizations.qll
Normal file
12
csharp/ql/src/Customizations.qll
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Contains customizations to the standard library.
|
||||
*
|
||||
* This module is imported by `csharp.qll`, so any customizations defined here automatically
|
||||
* apply to all queries.
|
||||
*
|
||||
* Typical examples of customizations include adding new subclasses of abstract classes such as
|
||||
* the `RemoteFlowSource` and `SummarizedCallable` classes associated with the security queries
|
||||
* to model frameworks that are not covered by the standard library.
|
||||
*/
|
||||
|
||||
import csharp
|
||||
@@ -2,6 +2,7 @@
|
||||
* The default C# QL library.
|
||||
*/
|
||||
|
||||
import Customizations
|
||||
import semmle.code.csharp.Attribute
|
||||
import semmle.code.csharp.Callable
|
||||
import semmle.code.csharp.Comments
|
||||
|
||||
Reference in New Issue
Block a user