-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy path.solhint.json
More file actions
43 lines (43 loc) · 1.38 KB
/
Copy path.solhint.json
File metadata and controls
43 lines (43 loc) · 1.38 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
{
"extends": "solhint:recommended",
"plugins": [],
"rules": {
"compiler-version": ["error", "^0.8.20"],
"func-visibility": ["error", {"ignoreConstructors": true}],
"max-line-length": ["error", 120],
"no-empty-blocks": "off",
"code-complexity": ["warn", 8],
"function-max-lines": ["warn", 75],
"max-states-count": ["warn", 15],
"no-console": "error",
"not-rely-on-time": "warn",
"reentrancy": "error",
"avoid-low-level-calls": "warn",
"avoid-call-value": "warn",
"avoid-sha3": "error",
"avoid-suicide": "error",
"avoid-throw": "error",
"avoid-tx-origin": "error",
"check-send-result": "error",
"mark-callable-contracts": "off",
"no-complex-fallback": "warn",
"no-inline-assembly": "warn",
"payable-fallback": "warn",
"reason-string": ["warn", {"maxLength": 32}],
"state-visibility": "error",
"use-forbidden-name": "error",
"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": ["error", {"strict": false}],
"use-natspec": "off",
"named-parameters-mapping": "warn",
"no-global-import": "error",
"imports-order": "warn",
"ordering": "warn",
"quotes": ["error", "double"]
}
}