From d7c8e25652f0cfeaa853c12191adb7d383cd3315 Mon Sep 17 00:00:00 2001 From: jmckenzieark <70923399+jmckenzieark@users.noreply.github.com> Date: Tue, 31 Aug 2021 03:55:43 +1000 Subject: [PATCH] Update dead cognitive-complexity link (#569) --- RULES_DESCRIPTIONS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RULES_DESCRIPTIONS.md b/RULES_DESCRIPTIONS.md index 4ef9aef..2c21e80 100644 --- a/RULES_DESCRIPTIONS.md +++ b/RULES_DESCRIPTIONS.md @@ -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.