Rule: template-cyclomatic-complexity

Checks cyclomatic complexity against a specified limit. It is a quantitative measure of the number of linearly independent paths through a program’s source code

Rationale

Cyclomatic complexity over some threshold indicates that the logic should be moved outside the template.

Notes:
TS Only

Config

Determine the maximum number of the cyclomatic complexity.

Examples
"template-cyclomatic-complexity": true
"template-cyclomatic-complexity": [true, 6]
Schema
{
  "items": {
    "type": "string"
  },
  "maxLength": 1,
  "minLength": 0,
  "type": "array"
}