Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 556 Bytes

no-big-function.md

File metadata and controls

16 lines (11 loc) · 556 Bytes

no-big-function

A function that grows too large tends to aggregate too many responsibilities.

Such functions inevitably become harder to understand and therefore harder to maintain.

Above a specific threshold, it is strongly advised to refactor into smaller functions which focus on well-defined tasks.

Those smaller functions will not only be easier to understand, but also probably easier to test.

Configuration

Maximum authorized lines of code in a function. Default is 200.

"no-big-function": true
"no-big-function": [true, 100]