mirror of https://github.com/ceph/go-ceph
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:
parent
9764170d5c
commit
dd46304a07
|
@ -37,3 +37,8 @@ warningCode = 0
|
||||||
[rule.constant-logical-expr]
|
[rule.constant-logical-expr]
|
||||||
[rule.unnecessary-stmt]
|
[rule.unnecessary-stmt]
|
||||||
[rule.unused-receiver]
|
[rule.unused-receiver]
|
||||||
|
|
||||||
|
[rule.argument-limit]
|
||||||
|
arguments = [7]
|
||||||
|
[rule.function-result-limit]
|
||||||
|
arguments = [3]
|
||||||
|
|
Loading…
Reference in New Issue