summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/src/docs/too_many_lines.txt
blob: 425db348bbd75f38b399d59a1eaf305eda54fddd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
### What it does
Checks for functions with a large amount of lines.

### Why is this bad?
Functions with a lot of lines are harder to understand
due to having to look at a larger amount of code to understand what the
function is doing. Consider splitting the body of the function into
multiple functions.

### Example
```
fn im_too_long() {
    println!("");
    // ... 100 more LoC
    println!("");
}
```