-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.solhint.json
More file actions
71 lines (67 loc) · 2.18 KB
/
Copy path.solhint.json
File metadata and controls
71 lines (67 loc) · 2.18 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
{
"extends": "solhint:recommended",
"plugins": [],
"rules": {
"code-complexity": ["error", 12],
"explicit-types": "error",
"function-max-lines": ["warn", 150],
"max-line-length": ["warn", 120],
"max-states-count": "error",
"no-console": "error",
"no-empty-blocks": "error",
"no-global-import": "error",
"no-unused-import": "error",
"no-unused-vars": "error",
"one-contract-per-file": "error",
"payable-fallback": "error",
"reason-string": "error",
"interface-starts-with-i": "error",
"duplicated-imports": "error",
"const-name-snakecase": "error",
"contract-name-capwords": "error",
"event-name-capwords": "error",
"func-name-mixedcase": "error",
"func-named-parameters": "error",
"func-param-name-mixedcase": "error",
"immutable-vars-naming": "error",
"modifier-name-mixedcase": "error",
"named-parameters-mapping": "error",
"private-vars-leading-underscore": "error",
"use-forbidden-name": "error",
"var-name-mixedcase": "error",
"imports-on-top": "warn",
"imports-order": "warn",
"import-path-check": "off",
"ordering": "warn",
"visibility-modifier-order": "error",
"constructor-syntax": "error",
"gas-calldata-parameters": "warn",
"gas-custom-errors": "warn",
"gas-increment-by-one": "off",
"gas-indexed-events": "off",
"gas-length-in-loops": "warn",
"gas-multitoken1155": "warn",
"gas-named-return-values": "warn",
"gas-small-strings": "warn",
"gas-strict-inequalities": "warn",
"gas-struct-packing": "warn",
"comprehensive-interface": "error",
"quotes": "error",
"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.24"],
"func-visibility": ["error", {"ignoreConstructors": true}],
"multiple-sends": "error",
"no-complex-fallback": "error",
"no-inline-assembly": "error",
"not-rely-on-block-hash": "error",
"not-rely-on-time": "error",
"reentrancy": "error",
"state-visibility": "error"
}
}