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

View Source

Detects functions with too many statements. Long functions are harder to read, test, and maintain. Break them into smaller, focused functions.

Category: Readability / Priority: normal

Configuration

Accepts the following parameters via .metacredo.exs:

  • max_statements - Maximum allowed statements per function (default: 50) (default: 50)