Ask AI
Skip to main content

Cyclomatic Complexity

The Cyclomatic Complexity analyzer detects actions that have become too complex with too many decision paths.

Cyclomatic complexity is a measure of how many different paths exist through your action. Every conditional branch adds to this number. A high complexity makes your action harder to read, understand, and maintain.

An issue is created when the complexity score exceeds 5.

How to fix it

Consider splitting the action into smaller, focused actions. Move a portion of the logic into a separate action and call it from the original one. Smaller actions are easier to test, reuse, and understand.

Severity

Small - the action will still work, but it may become difficult to maintain over time.