From dd46304a07cc41d359d452859d141db2bd5037cd Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Wed, 8 Apr 2020 17:02:01 -0400 Subject: [PATCH] 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 --- .revive.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.revive.toml b/.revive.toml index fbc10f20f..450917ee5 100644 --- a/.revive.toml +++ b/.revive.toml @@ -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]