-
Notifications
You must be signed in to change notification settings - Fork 1
/
.solhint.json
47 lines (44 loc) · 1.43 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
{
"extends": "solhint:recommended",
"plugins": [],
"rules": {
"code-complexity": ["warn", 7],
"function-max-lines": ["warn", 50],
"max-line-length": ["error", 120],
"max-states-count": ["warn", 15],
"no-empty-blocks": "warn",
"no-unused-vars": "warn",
"payable-fallback": "warn",
"reason-string": ["off", { "maxLength": 32 }],
"constructor-syntax": "error",
"comprehensive-interface": "warn",
"quotes": ["error", "double"],
"const-name-snakecase": "warn",
"contract-name-camelcase": "warn",
"event-name-camelcase": "warn",
"func-name-mixedcase": "warn",
"func-param-name-mixedcase": "warn",
"modifier-name-mixedcase": "warn",
"private-vars-leading-underscore": ["warn", { "strict": false }],
"use-forbidden-name": "warn",
"var-name-mixedcase": "warn",
"imports-on-top": "warn",
"ordering": "warn",
"visibility-modifier-order": "warn",
"avoid-call-value": "warn",
"avoid-low-level-calls": "warn",
"avoid-sha3": "warn",
"avoid-suicide": "warn",
"avoid-throw": "warn",
"avoid-tx-origin": "warn",
"check-send-result": "warn",
"multiple-sends": "warn",
"no-complex-fallback": "warn",
"no-inline-assembly": "warn",
"not-rely-on-block-hash": "warn",
"reentrancy": "warn",
"state-visibility": "warn",
"compiler-version": ["error", "^0.8.0"],
"func-visibility": ["warn", { "ignoreConstructors": true }]
}
}