Michael Nebel
|
a3ef137a8e
|
Merge pull request #19014 from michaelnebel/csharp/ccr-useless-gethashcode-all
C#: Add `cs/useless-gethashcode-call` to the CCR suite.
|
2025-03-14 08:45:31 +01:00 |
|
Michael Nebel
|
563ffb8c27
|
Merge pull request #19010 from michaelnebel/csharp/useless-gethashcode-call
C#: Increase precision of `cs/useless-gethashcode-call`.
|
2025-03-14 08:44:38 +01:00 |
|
Michael Nebel
|
e2699586db
|
C#: Add cs/useless-gethashcode-call to the CCR suite.
|
2025-03-13 15:42:28 +01:00 |
|
Michael Nebel
|
dff66c7b28
|
C#: Add change-note.
|
2025-03-13 13:42:58 +01:00 |
|
Michael Nebel
|
36a524929f
|
C#: Update tests and test expected output.
|
2025-03-13 13:38:13 +01:00 |
|
Michael Nebel
|
4b02198652
|
C#: Only consider calling GetHashCode on byte, sbyte, short, ushort and int as useless.
|
2025-03-13 13:32:22 +01:00 |
|
Michael Nebel
|
a6ec8b6a25
|
C#: Convert tests cs/useless-gethashcode-call to inline tests.
|
2025-03-13 13:31:20 +01:00 |
|
Michael Nebel
|
b1edd9294b
|
C#: Add some more test cases to cs/local-not-disposed.
|
2025-03-13 11:19:37 +01:00 |
|
Michael Nebel
|
209b9c6114
|
C#: Re-factor to use inline expectation tests instead.
|
2025-03-13 11:11:23 +01:00 |
|
Michael Nebel
|
40375a0387
|
C#: Use stubs for the cs/local-not-disposed tests.
|
2025-03-13 10:47:45 +01:00 |
|
Michael Nebel
|
5eb9a535a4
|
C#: Remove disposal test for library code as we are no longer doing CIL extraction or data flow.
|
2025-03-13 10:45:00 +01:00 |
|
Michael Nebel
|
b76527fa84
|
C#: Add cs/constant-condition to the CCR suite.
|
2025-03-12 14:55:20 +01:00 |
|
Michael Nebel
|
e79cb443da
|
Merge pull request #18976 from michaelnebel/csharp/constant-condition
C#: Increase precision of `cs/constant-condition`.
|
2025-03-12 14:42:15 +01:00 |
|
Michael Nebel
|
42f86a8234
|
Update csharp/ql/src/Bad Practices/Control-Flow/ConstantCondition.ql
Co-authored-by: Tom Hvitved <hvitved@github.com>
|
2025-03-12 11:13:25 +01:00 |
|
Michael Nebel
|
9e8339db6d
|
Merge pull request #18961 from michaelnebel/csharp/ccr-local-not-disposed
C#: Add `cs/local-not-disposed` to the CCR suite.
|
2025-03-12 09:18:40 +01:00 |
|
Michael Nebel
|
4a3e463918
|
Merge pull request #18950 from michaelnebel/csharp/localnotdisposed
C#: Exclude Task from cs/local-not-disposed.
|
2025-03-12 09:17:22 +01:00 |
|
Michael Nebel
|
371a72ecec
|
C#: Move Bad test into other file to avoid sync-files breakage.
|
2025-03-11 14:54:13 +01:00 |
|
Michael Nebel
|
1286420d39
|
C#: Add change-note.
|
2025-03-11 14:42:51 +01:00 |
|
Michael Nebel
|
120af3611a
|
C#: Update test expected output.
|
2025-03-11 14:39:09 +01:00 |
|
Michael Nebel
|
150aa5d1cf
|
C#: Include normal switch/case statements in the white list and allow the use of wildcards when there is a condition.
|
2025-03-11 14:37:56 +01:00 |
|
Michael Nebel
|
c15137e992
|
C#: Update test expected output.
|
2025-03-11 14:36:34 +01:00 |
|
Michael Nebel
|
f42ae48ffa
|
C#: Add some switch case examples.
|
2025-03-11 14:35:04 +01:00 |
|
Michael Nebel
|
4451e55bba
|
C#: Convert cs/constant-condition tests to inline expectation tests.
|
2025-03-11 13:35:05 +01:00 |
|
Michael Nebel
|
744936fbd7
|
C#: Add cs/local-not-disposed to the CCR suite.
|
2025-03-11 12:46:16 +01:00 |
|
Michael Nebel
|
ca553bf1a2
|
Merge pull request #18932 from michaelnebel/csharp/ismatchingconstantunknowtype
C#: Special handling of unknown types in `isMatchingConstant`.
|
2025-03-10 14:37:27 +01:00 |
|
Michael Nebel
|
21aa62c18c
|
C#: Address review comments.
|
2025-03-10 13:28:20 +01:00 |
|
Michael Nebel
|
a16c2c80f7
|
C#: Add change-note.
|
2025-03-10 13:03:01 +01:00 |
|
Michael Nebel
|
26f0f7f6da
|
Update csharp/ql/test/query-tests/API Abuse/NoDisposeCallOnLocalIDisposable/NoDisposeCallOnLocalIDisposable.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
2025-03-10 12:40:25 +01:00 |
|
Michael Nebel
|
13226edbeb
|
C#: Add change-note.
|
2025-03-10 10:54:20 +01:00 |
|
Michael Nebel
|
3f8679a099
|
C#: Update test expected output.
|
2025-03-07 16:00:28 +01:00 |
|
Michael Nebel
|
7a99dfaebe
|
C#: Do flag missing Dispose calls on Task and Task<>.
|
2025-03-07 15:14:07 +01:00 |
|
Michael Nebel
|
f58c72ed59
|
C#: Add example for local not disposed involving tasks.
|
2025-03-07 14:44:29 +01:00 |
|
Michael Nebel
|
3903a90a11
|
C#: Update expected test output.
|
2025-03-07 13:22:37 +01:00 |
|
Michael Nebel
|
b5ea34fcf3
|
C#: We can't do any reasoning based on unknown types on whether they match in a pattern.
|
2025-03-07 13:22:35 +01:00 |
|
Michael Nebel
|
5c0fc1f75b
|
C#: Add BMN tests for cs/constant-condition.
|
2025-03-07 13:22:34 +01:00 |
|
Michael Nebel
|
431586bb70
|
C#: Make the same folder structure for BMN tests as used for traced extractor tests.
|
2025-03-07 13:22:32 +01:00 |
|
Michael Nebel
|
c9796ee297
|
C#: Add cs/call-to-object-tostring to the CCR query suite.
|
2025-03-07 09:52:08 +01:00 |
|
Michael Nebel
|
82b7a19df1
|
Merge pull request #18894 from michaelnebel/csharp/garbagetypes
C#: Handle some BMN garbage types.
|
2025-03-07 09:19:48 +01:00 |
|
Anders Schack-Mulligen
|
da579c27fc
|
Merge pull request #18934 from aschackmull/ssa/refactor5
SSA: Replace the Guards interface in the SSA data flow integration.
|
2025-03-06 15:11:52 +01:00 |
|
Michael Nebel
|
61c043fd4a
|
Merge pull request #18935 from michaelnebel/csharp/useless-if-statement
C#: Fewer alerts in `cs/useless-if-statement`.
|
2025-03-06 13:53:20 +01:00 |
|
Michael Nebel
|
c73eeec814
|
C#: Add change note.
|
2025-03-05 15:33:02 +01:00 |
|
Michael Nebel
|
dd7d5d031c
|
C#: Update test expected output.
|
2025-03-05 15:27:01 +01:00 |
|
Michael Nebel
|
35fbaf4ac3
|
C#: Do flag empty if statements if there is a comment in cs/useless-if-statement.
|
2025-03-05 15:26:39 +01:00 |
|
Michael Nebel
|
361bdfac12
|
C#: Add a testcase with an empty if statement containing a comment.
|
2025-03-05 15:22:22 +01:00 |
|
Michael Nebel
|
a9d45a2aa2
|
C#: Add some tests for cs/useless-if-statement.
|
2025-03-05 14:32:41 +01:00 |
|
Anders Schack-Mulligen
|
c6761db2fc
|
SSA: Replace the Guards interface in the SSA data flow integration.
|
2025-03-05 13:29:31 +01:00 |
|
Michael Nebel
|
5c931fa897
|
C#: Improve comments.
|
2025-03-05 09:50:52 +01:00 |
|
Michael Nebel
|
3b764b0640
|
C#: Update test expected output.
|
2025-03-05 09:04:56 +01:00 |
|
Michael Nebel
|
9af170f60e
|
C#: Add BMN test using broken types.
|
2025-03-05 09:04:50 +01:00 |
|
Michael Nebel
|
5551aebaa9
|
C#: Add a primary ql class for UnknownType.
|
2025-03-05 09:04:49 +01:00 |
|