CognitiveComplexity
What this rule checks
Code cognitive complexity within limits (threshold: 10)
Configuration
When off, this rule is excluded from pipeline runs. Changes apply immediately.
Code Examples
Overview
| Category | PDPS |
| Type | Built-in PMD |
| Priority | 3 (1 = highest, 5 = lowest) |
| Status | Active |
PMD Configuration
| PMD reference | category/java/design.xml/CognitiveComplexity |
| Message template | Consider reviewing or refactoring for clarity. |
| Properties |
reportLevel = 10 |