MetaCredo. Check. Readability. ComplexConditional
(MetaCredo v0.1.0)
View Source
Detects deeply nested boolean operations (e.g. a and (b or (c and d))).
Complex boolean expressions are hard to reason about. Extract sub-conditions
into well-named variables or helper functions.
Category: Readability / Priority: normal
Configuration
Accepts the following parameters via .metacredo.exs:
max_boolean_depth- Maximum allowed nesting depth of boolean operations (default: 2) (default:2)