Cyclomatic Complexity threshold exceeded (LC0010)

This rule triggers when a procedure’s Cyclomatic Complexity exceeds a configurable threshold. High complexity makes code harder to understand, test exhaustively, and maintain.

Consider refactoring complex procedures by:

  • Extracting conditional blocks into separate helper methods
  • Using early returns to reduce nesting
  • Replacing complex switch/case statements with polymorphism or strategy patterns

See also

  • LC0009 - Cyclomatic Complexity metric