Skip to content

Commit

Permalink
revive: enable rules to limit argument and return counts
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
phlogistonjohn committed Apr 9, 2020
1 parent 9764170 commit dd46304
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .revive.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]

0 comments on commit dd46304

Please sign in to comment.