forked from Betta-Pay/BettaPay-Contract
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclippy.toml
More file actions
19 lines (16 loc) · 789 Bytes
/
Copy pathclippy.toml
File metadata and controls
19 lines (16 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Clippy configuration for BettaPay-Contract
#
# This file raises certain clippy thresholds that are acceptable for
# smart contract development, where some patterns (e.g. many
# function parameters, complex types) are unavoidable.
#
# Note: these lints take a numeric threshold, not an "allow"/"deny" string
# (that was the previous, incompatible form of this file, which made
# `cargo clippy` fail outright with "unknown field" before ever reaching
# the crates' own code).
# Allow functions with many arguments (common in Soroban contract interfaces)
too-many-arguments-threshold = 20
# Allow complex type definitions (e.g. nested maps in contract storage)
type-complexity-threshold = 5000
# Allow moderate cognitive complexity in contract logic
cognitive-complexity-threshold = 100