MetaCredo. Check. Warning. CallbackHell
(MetaCredo v0.1.0)
View Source
Detects deeply nested conditional statements (case, with, if/else)
exceeding the configured nesting threshold. Deep nesting creates
"callback hell" that is hard to read, test, and maintain.
Refactor using with, early returns, guard clauses, or extract
nested logic into separate functions.
Category: Warning / Priority: normal
Configuration
Accepts the following parameters via .metacredo.exs:
max_nesting- Maximum allowed nesting depth (default: 3) (default:3)