Skip to content

Commit

Permalink
Update dead cognitive-complexity link (#569)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmckenzieark authored Aug 30, 2021
1 parent 18cdb55 commit d7c8e25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RULES_DESCRIPTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,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.
_Description_: [Cognitive complexity](https://www.sonarsource.com/docs/CognitiveComplexity.pdf) is a measure of how hard code is to understand.
While cyclomatic complexity is good to measure "testability" 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.

Expand Down

0 comments on commit d7c8e25

Please sign in to comment.