Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Latest commit

 

History

History
18 lines (12 loc) · 479 Bytes

cognitive-complexity.md

File metadata and controls

18 lines (12 loc) · 479 Bytes

cognitive-complexity

Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.

See

Configuration

The maximum authorized complexity can be provided. Default is 15.

{
  "sonarjs/cognitive-complexity": "error",
  "sonarjs/cognitive-complexity": ["error", 15]
}