Repository navigation
Expand file tree
/
Copy pathclippy.toml
More file actions
118 lines (102 loc) · 2.25 KB
/
Copy pathclippy.toml
File metadata and controls
118 lines (102 loc) · 2.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# Clippy configuration / Clippy配置
#
# This file configures the Rust linter Clippy.
# 此文件配置Rust linter Clippy。
# Cognitive complexity threshold / 认知复杂度阈值
cognitive-complexity-threshold = 30
# Disallowed methods / 禁止的方法
disallowed-methods = []
# Disallowed types / 禁止的类型
disallowed-types = []
# Documentation style / 文档风格
doc-valid-idents = [
"Hiver",
"Web3",
"GitHub",
"GitHubActions",
"JavaScript",
"TensorFlow",
"Rust",
"Golang",
"Python",
"Java",
"TypeScript",
"WebAssembly",
"WASM",
"HTTP",
"HTTPS",
"HTTP2",
"HTTP3",
"TLS",
"TCP",
"UDP",
"IP",
"DNS",
"URL",
"URI",
"API",
"REST",
"GraphQL",
"gRPC",
"JSON",
"YAML",
"TOML",
"XML",
"HTML",
"CSS",
"CI",
"CD",
"CLI",
"IDE",
"IoC",
"AOP",
"SQL",
"NoSQL",
"Redis",
"PostgreSQL",
"macOS",
"Linux",
"Windows",
"Unix",
"BSD",
"MIT",
"Apache",
"GPL",
"LGPL",
"MPL",
"ISC",
"OAuth",
"JWT",
"OIDC",
"SSO",
"WebSocket",
"Ethereum",
"Solidity",
]
# Enforced import renames / 强制导入重命名
enforced-import-renames = []
# Literal representation threshold / 字面量表示阈值
literal-representation-threshold = 10
# Check private items too / 也检查私有项
check-private-items = true
# Too many arguments threshold / 参数过多阈值
too-many-arguments-threshold = 7
# Too many lines threshold / 行数过多阈值
too-many-lines-threshold = 100
# Type complexity threshold / 类型复杂度阈值
type-complexity-threshold = 250
# Single char binding names threshold / 单字符绑定名阈值
single-char-binding-names-threshold = 4
# Literal representation threshold / 字面量表示阈值
vec-box-size-threshold = 1
# Stack size threshold / 栈大小阈值
stack-size-threshold = 512000
# Enum variant size threshold / 枚举变量大小阈值
enum-variant-size-threshold = 200
# Verious lints / 各种lints
# Allow expect and unwrap in tests / 测试中允许expect和unwrap
allow-expect-in-tests = true
allow-unwrap-in-tests = true
allow-dbg-in-tests = true
# Maximum trait bounds / 最大trait边界
max-trait-bounds = 3