Skip to content

Commit f8c0c68

Browse files
committed
add clippy and rustfmt config files
1 parent 1f9674b commit f8c0c68

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

clippy.toml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# cyclomatic complexity is not always useful
2+
cognitive-complexity-threshold = 100
3+
# types are used for safety encoding
4+
type-complexity-threshold = 10000
5+
# manipulating complex states machines in consensus
6+
too-many-arguments-threshold = 15

rustfmt.toml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
comment_width = 100
2+
edition = "2018"
3+
merge_imports = true
4+
use_field_init_shorthand = true
5+
wrap_comments = true

0 commit comments

Comments
 (0)