Skip to content

Commit 77fa450

Browse files
committed
C#: Add cs/dereferenced-value-is-always-null and cs/dereferenced-value-may-be-null to the Code Quality suites.
1 parent 7a63c7d commit 77fa450

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

csharp/ql/integration-tests/posix/query-suite/csharp-code-quality.qls.expected

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ ql/csharp/ql/src/API Abuse/CallToGCCollect.ql
22
ql/csharp/ql/src/API Abuse/FormatInvalid.ql
33
ql/csharp/ql/src/API Abuse/NoDisposeCallOnLocalIDisposable.ql
44
ql/csharp/ql/src/Bad Practices/Control-Flow/ConstantCondition.ql
5+
ql/csharp/ql/src/CSI/NullAlways.ql
6+
ql/csharp/ql/src/CSI/NullMaybe.ql
57
ql/csharp/ql/src/Dead Code/DeadStoreOfLocal.ql
68
ql/csharp/ql/src/Language Abuse/MissedReadonlyOpportunity.ql
79
ql/csharp/ql/src/Likely Bugs/Collections/ContainerLengthCmpOffByOne.ql

csharp/ql/src/CSI/NullAlways.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* correctness
1010
* exceptions
1111
* external/cwe/cwe-476
12+
* quality
1213
*/
1314

1415
import csharp

csharp/ql/src/CSI/NullMaybe.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* correctness
1111
* exceptions
1212
* external/cwe/cwe-476
13+
* quality
1314
*/
1415

1516
import csharp

0 commit comments

Comments
 (0)