Skip to content

Files

Latest commit

 

History

History
23 lines (14 loc) · 482 Bytes

argument-limit.md

File metadata and controls

23 lines (14 loc) · 482 Bytes

Pattern: Too many function arguments

Issue: -

Description

Warns when a function receives more parameters than the maximum set by the rule's configuration. Enforcing a maximum number of parameters helps to keep the code readable and maintainable.

Configuration

(int) the maximum number of parameters allowed per function.

Example:

[rule.argument-limit]
  arguments =[4]

Further Reading