-
Notifications
You must be signed in to change notification settings - Fork 0
/
.solhint.json
42 lines (42 loc) · 1.36 KB
/
.solhint.json
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
{
"extends": "solhint:recommended",
"rules": {
"compiler-version": ["warn", "0.8.24"],
"func-visibility": ["warn", { "ignoreConstructors": true }],
"reentrancy": "error",
"state-visibility": "error",
"quotes": ["error", "double"],
"const-name-snakecase": "error",
"contract-name-camelcase": "error",
"event-name-camelcase": "error",
"func-name-mixedcase": "error",
"func-param-name-mixedcase": "error",
"modifier-name-mixedcase": "error",
"private-vars-leading-underscore": ["off", { "strict": true }],
"use-forbidden-name": "error",
"var-name-mixedcase": "error",
"imports-on-top": "error",
"ordering": "error",
"visibility-modifier-order": "error",
"code-complexity": ["error", 7],
"function-max-lines": ["error", 80],
"max-line-length": ["warn", 120],
"max-states-count": ["error", 15],
"no-empty-blocks": "error",
"no-unused-vars": "error",
"payable-fallback": "off",
"constructor-syntax": "error",
"explicit-types": "error",
"no-unused-import": "error",
"one-contract-per-file": "warn",
"not-rely-on-time": "off",
"reason-string": "error",
"no-inline-assembly": "off",
"avoid-low-level-calls": "off",
"custom-errors": "off",
"no-complex-fallback": "off",
"no-global-import": "off",
"avoid-tx-origin": "off"
},
"plugins": ["prettier"]
}