MetaCredo.Check.Readability.NestedFunctionCalls (MetaCredo v0.1.0)

View Source

Detects deeply nested function calls like foo(bar(baz(x))). Extract intermediate results into variables or use pipes for clarity.

Category: Readability / Priority: normal

Configuration

Accepts the following parameters via .metacredo.exs:

  • max_nesting - Maximum allowed nesting depth of function calls (default: 2) (default: 2)