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
21| ConstantCondition.cs:38:18:38:29 | (...) ... | Expression is always 'null'. |
32| ConstantCondition.cs:39:18:39:24 | (...) ... | Expression is never 'null'. |
43| ConstantCondition.cs:46:17:46:26 | (...) ... | Expression is always 'null'. |
1110| ConstantCondition.cs:95:13:95:13 | _ | Pattern always matches. |
1211| ConstantCondition.cs:114:13:114:14 | access to parameter b1 | Condition always evaluates to 'true'. |
1312| 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. |
1513| 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. |
1814| ConstantConditionBad.cs:5:16:5:20 | ... > ... | Condition always evaluates to 'false'. |
1915| ConstantConditionalExpressionCondition.cs:11:22:11:34 | ... == ... | Condition always evaluates to 'true'. |
2016| ConstantConditionalExpressionCondition.cs:12:21:12:25 | false | Condition always evaluates to 'false'. |
3329| ConstantWhileCondition.cs:12:20:12:32 | ... == ... | Condition always evaluates to 'true'. |
3430| ConstantWhileCondition.cs:16:20:16:24 | false | Condition always evaluates to 'false'. |
3531| 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