max-params
Enforce a maximum number of parameters in function declarations
INFO
☑️ The predefined configuration "mslint:recommended" enables this rule.
Rule details
This rule restricts the number of parameters allowed in function declarations.
Settings
maximumthe maximum number of parameters allowed in function declarations. Default10.
Example of incorrect code for this rule:
maniascript
// { "maximum" = 3 }
Void Function(Integer _Param1, Integer _Param2, Integer _Param3, Integer _Param4) {
DoThings();
}Example of correct code for this rule:
maniascript
// { "maximum" = 3 }
Void Function(Integer _Param1, Integer _Param2, Integer _Param3) {
DoThings();
}