Skip to content

Commit

Permalink
Let clippy complain if the # of arguments grows out of hand
Browse files Browse the repository at this point in the history
The # of fns with large > of arguments is growing fast\
(record is new in event_processor)

Calls with >7 arguments in consensus:
https://gist.github.com/huitseeker/ec8d79f88cbcbacde5e3a21a6b207358

Closes: aptos-labs#1033
Approved by: bmwill
  • Loading branch information
huitseeker authored and bors-libra committed Sep 23, 2019
1 parent dfcbbe7 commit 9bae231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ cognitive-complexity-threshold = 100
# types are used for safety encoding
type-complexity-threshold = 10000
# manipulating complex states machines in consensus
too-many-arguments-threshold = 15
too-many-arguments-threshold = 13

0 comments on commit 9bae231

Please sign in to comment.