]> git.lizzy.rs Git - rust.git/blob - src/docs/cognitive_complexity.txt
Auto merge of #9421 - xphoniex:fix-#9420, r=giraffate
[rust.git] / src / docs / cognitive_complexity.txt
1 ### What it does
2 Checks for methods with high cognitive complexity.
3
4 ### Why is this bad?
5 Methods of high cognitive complexity tend to be hard to
6 both read and maintain. Also LLVM will tend to optimize small methods better.
7
8 ### Known problems
9 Sometimes it's hard to find a way to reduce the
10 complexity.
11
12 ### Example
13 You'll see it when you get the warning.