Miscellaneous-MaxParams

A function must not have more than N parameters

Required inputs: IR

Complain about function definitions that have too many parameters.
Example
int foo(int a, int b, int c, int d, int e, int f, int g, int h) {};

Possible Messages

Key

Text

Severity

Disabled

excessive_parameter_number

Function with {} parameters more than {}.

None

False

Options

ignore_inherited

ignore_inherited : bool = False

Do not report functions inheriting a inacceptable number of parameters.
 

maxparams

maxparams : int = 7

Maximum acceptable number of parameters.