blob: 3d285a6d86e48f8e7e7ebbebd97b83ad5489c6f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
### What it does
Checks for erasing operations, e.g., `x * 0`.
### Why is this bad?
The whole expression can be replaced by zero.
This is most likely not the intended outcome and should probably be
corrected
### Example
```
let x = 1;
0 / x;
0 * x;
x & 0;
```
|