Files
codeql/go/ql/test/query-tests/RedundantCode/NegativeLengthCheck/NegativeLengthCheck.expected
2022-05-20 10:07:19 -07:00

7 lines
610 B
Plaintext

| NegativeLengthCheck.go:4:5:4:15 | ...<... | 'len' is always non-negative, and hence cannot be less than 0. |
| main.go:6:5:6:20 | ...<... | 'len' is always non-negative, and hence cannot be less than 0. |
| main.go:14:5:14:20 | ...<... | 'cap' is always non-negative, and hence cannot be less than 0. |
| main.go:18:5:18:22 | ...<=... | 'len' is always non-negative, and hence cannot be less than -1. |
| main.go:22:5:22:22 | ...==... | 'len' is always non-negative, and hence cannot equal -1. |
| main.go:28:9:28:13 | ...<... | This unsigned value is always non-negative, and hence cannot be less than 0. |