File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
csharp/ql/test/query-tests/Bad Practices/Control-Flow/ConstantCondition Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 1+ #select
12| ConstantCondition.cs:38:18:38:29 | (...) ... | Expression is always 'null'. |
23| ConstantCondition.cs:39:18:39:24 | (...) ... | Expression is never 'null'. |
34| ConstantCondition.cs:46:17:46:26 | (...) ... | Expression is always 'null'. |
1011| ConstantCondition.cs:95:13:95:13 | _ | Pattern always matches. |
1112| ConstantCondition.cs:114:13:114:14 | access to parameter b1 | Condition always evaluates to 'true'. |
1213| 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+ | 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. |
1318| ConstantConditionBad.cs:5:16:5:20 | ... > ... | Condition always evaluates to 'false'. |
1419| ConstantConditionalExpressionCondition.cs:11:22:11:34 | ... == ... | Condition always evaluates to 'true'. |
1520| ConstantConditionalExpressionCondition.cs:12:21:12:25 | false | Condition always evaluates to 'false'. |
2833| ConstantWhileCondition.cs:12:20:12:32 | ... == ... | Condition always evaluates to 'true'. |
2934| ConstantWhileCondition.cs:16:20:16:24 | false | Condition always evaluates to 'false'. |
3035| 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