revive: enable rules to limit argument and return counts

We already have a few functions with unwieldy number of arguments. Cap
the max number of arguments to allow at our current max (7) and cap
the number of return values at 3.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2020-04-08 17:02:01 -04:00 committed by John Mulligan
parent 9764170d5c
commit dd46304a07
1 changed files with 5 additions and 0 deletions

View File

@ -37,3 +37,8 @@ warningCode = 0
[rule.constant-logical-expr]
[rule.unnecessary-stmt]
[rule.unused-receiver]
[rule.argument-limit]
arguments = [7]
[rule.function-result-limit]
arguments = [3]