-
Notifications
You must be signed in to change notification settings - Fork 38
/
.solhint.json
56 lines (50 loc) · 1.64 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
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"plugins": ["prettier"],
"rules": {
"code-complexity": ["warn", 7],
"custom-errors": "error",
"explicit-types": ["error"],
"function-max-lines": ["off", 50],
"max-line-length": ["off", 120],
"max-states-count": ["off", 15],
"no-console": "error",
"no-empty-blocks": "warn",
"no-global-import": "warn",
"no-unused-import": "warn",
"no-unused-vars": "warn",
"one-contract-per-file": "warn",
"payable-fallback": "warn",
"reason-string": ["warn", {"maxLength": 32}],
"constructor-syntax": "warn",
"comprehensive-interface": "off",
"quotes": ["error", "double"],
"const-name-snakecase": "warn",
"foundry-test-functions": ["off", ["setUp"]],
"func-name-mixedcase": "warn",
"modifier-name-mixedcase": "warn",
"named-parameters-mapping": "warn",
"named-return-values": "off",
"private-vars-leading-underscore": ["off", {"strict": false}],
"use-forbidden-name": "warn",
"var-name-mixedcase": "warn",
"imports-on-top": "warn",
"visibility-modifier-order": "warn",
"avoid-call-value": "error",
"avoid-low-level-calls": "error",
"avoid-sha3": "error",
"avoid-suicide": "error",
"avoid-throw": "error",
"avoid-tx-origin": "error",
"check-send-result": "error",
"compiler-version": ["error", "0.8.19"],
"func-visibility": ["error", {"ignoreConstructors": true}],
"multiple-sends": "warn",
"no-complex-fallback": "warn",
"no-inline-assembly": "warn",
"not-rely-on-block-hash": "warn",
"not-rely-on-time": "warn",
"reentrancy": "warn",
"state-visibility": "warn",
"prettier/prettier": "error"
}
}