Skip to content

Commit 972cc47

Browse files
authored
Merge pull request github#5673 from hvitved/csharp/customizations
C#: Add `Customizations.qll`
2 parents 4be183c + 36fe722 commit 972cc47

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-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.

csharp/ql/src/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 `csharp.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+
* the `RemoteFlowSource` and `SummarizedCallable` classes associated with the security queries
9+
* to model frameworks that are not covered by the standard library.
10+
*/
11+
12+
import csharp

csharp/ql/src/csharp.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* The default C# QL library.
33
*/
44

5+
import Customizations
56
import semmle.code.csharp.Attribute
67
import semmle.code.csharp.Callable
78
import semmle.code.csharp.Comments

0 commit comments

Comments
 (0)