Skip to content

Files

Latest commit

 

History

History
24 lines (14 loc) · 531 Bytes

function-length.md

File metadata and controls

24 lines (14 loc) · 531 Bytes

Pattern: Function is too long

Issue: -

Description

Functions too long (with many statements and/or lines) can be hard to understand.

Configuration

(int,int) the maximum allowed statements and lines. Must be non-negative integers. Set to 0 to disable the check.

Example:

[rule.function-length]
  arguments =[10,0]

Will check for functions exceeding 10 statements and will not check the number of lines of functions.

Further Reading