about summary refs log tree commit diff
path: root/src/docs/cognitive_complexity.txt
blob: fdd75f6479cd00cf24d503b37b9f3d48c38249da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
### What it does
Checks for methods with high cognitive complexity.

### Why is this bad?
Methods of high cognitive complexity tend to be hard to
both read and maintain. Also LLVM will tend to optimize small methods better.

### Known problems
Sometimes it's hard to find a way to reduce the
complexity.

### Example
You'll see it when you get the warning.