File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
csharp/ql/test/query-tests/Bad Practices/Control-Flow/ConstantCondition Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change 1
- #select
2
1
| ConstantCondition.cs:38:18:38:29 | (...) ... | Expression is always 'null'. |
3
2
| ConstantCondition.cs:39:18:39:24 | (...) ... | Expression is never 'null'. |
4
3
| ConstantCondition.cs:46:17:46:26 | (...) ... | Expression is always 'null'. |
11
10
| ConstantCondition.cs:95:13:95:13 | _ | Pattern always matches. |
12
11
| ConstantCondition.cs:114:13:114:14 | access to parameter b1 | Condition always evaluates to 'true'. |
13
12
| ConstantCondition.cs:114:19:114:20 | access to parameter b2 | Condition always evaluates to 'true'. |
14
- | ConstantCondition.cs:132:13:132:13 | _ | Pattern always matches. |
15
13
| ConstantCondition.cs:141:22:141:22 | _ | Pattern always matches. |
16
- | ConstantCondition.cs:150:22:150:22 | _ | Pattern always matches. |
17
- | ConstantCondition.cs:152:22:152:22 | _ | Pattern always matches. |
18
14
| ConstantConditionBad.cs:5:16:5:20 | ... > ... | Condition always evaluates to 'false'. |
19
15
| ConstantConditionalExpressionCondition.cs:11:22:11:34 | ... == ... | Condition always evaluates to 'true'. |
20
16
| ConstantConditionalExpressionCondition.cs:12:21:12:25 | false | Condition always evaluates to 'false'. |
33
29
| ConstantWhileCondition.cs:12:20:12:32 | ... == ... | Condition always evaluates to 'true'. |
34
30
| ConstantWhileCondition.cs:16:20:16:24 | false | Condition always evaluates to 'false'. |
35
31
| ConstantWhileCondition.cs:24:20:24:29 | ... == ... | Condition always evaluates to 'true'. |
36
- testFailures
37
- | ConstantCondition.cs:132:13:132:13 | Pattern always matches. | Unexpected result: Alert |
38
- | ConstantCondition.cs:150:22:150:22 | Pattern always matches. | Unexpected result: Alert |
39
- | ConstantCondition.cs:152:22:152:22 | Pattern always matches. | Unexpected result: Alert |
You can’t perform that action at this time.
0 commit comments