about summary refs log tree commit diff
path: root/src/docs/never_loop.txt
blob: 737ccf415cb981cec2a5a132bcc17f46ebb69522 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
### What it does
Checks for loops that will always `break`, `return` or
`continue` an outer loop.

### Why is this bad?
This loop never loops, all it does is obfuscating the
code.

### Example
```
loop {
    ..;
    break;
}
```