mirror of
https://github.com/mgechev/revive.git
synced 2025-01-10 03:17:11 +02:00
Merge branch 'rule-cognitive-complexity' of https://github.com/chavacava/revive into rule-cognitive-complexity
This commit is contained in:
commit
62b55dbd26
@ -126,7 +126,7 @@ _Configuration_: N/A
|
||||
## cognitive-complexity
|
||||
|
||||
_Description_: [Cognitive complexity](https://www.sonarsource.com/resources/white-papers/cognitive-complexity.html) is a measure of how hard code is to understand.
|
||||
While cyclomatic complexity is good to measure "testeability" of the code, cognitive complexity aims to provides a more precise measure of the difficulty of understanding.
|
||||
While cyclomatic complexity is good to measure "testeability" of the code, cognitive complexity aims to provide a more precise measure of the difficulty of understanding the code.
|
||||
Enforcing a maximum complexity per function helps to keep code readable and maintainable.
|
||||
|
||||
_Configuration_: (int) the maximum function complexity
|
||||
|
Loading…
Reference in New Issue
Block a user