-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.solhint.json
63 lines (63 loc) · 2.05 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
56
57
58
59
60
61
62
63
{
"extends": "solhint:recommended",
"rules": {
"no-console": "warn",
"avoid-low-level-calls": "off",
"code-complexity": ["error", 9],
"compiler-version": ["error", ">=0.8.0 <0.9.0"],
"const-name-snakecase": "off",
"gas-custom-errors": "off",
"func-name-mixedcase": "error",
"immutable-vars-naming": "error",
"func-visibility": ["error", { "ignoreConstructors": true }],
"max-line-length": ["error", 123],
"named-parameters-mapping": "warn",
"no-global-import": "warn",
"imports-order": "off",
"no-unused-import": "error",
"avoid-call-value": "error",
"avoid-low-level-calls": "error",
"no-complex-fallback": "error",
"avoid-tx-origin": "error",
"check-send-result": "error",
"compiler-version": "error",
"no-inline-assembly": "error",
"not-rely-on-block-hash": "error",
"reentrancy": "error",
"modifier-name-mixedcase": "error",
"state-visibility": "error",
"multiple-sends": "error",
"named-parameters-mapping": "error",
"visibility-modifier-order": "warn",
"gas-calldata-parameters": "warn",
"quotes": "warn",
"gas-indexed-events": "off",
"gas-strict-inequalities": "off",
"gas-struct-packing": "error",
"gas-increment-by-one": "warn",
"gas-length-in-loops": "off",
"no-unused-vars": "error",
"no-empty-blocks": "off",
"not-rely-on-time": "off",
"one-contract-per-file": "off",
"var-name-mixedcase": "warn",
"func-order": "off",
"max-line-length": "off",
"reason-string": "off",
"func-named-parameters": "error",
"imports-on-top": "error",
"ordering": "off",
"func-param-name-mixedcase": "error",
"modifier-name-mixedcase": "error",
"private-vars-leading-underscore": "error",
"use-forbidden-name": "error",
"code-complexity": "error",
"explicit-types": "error",
"constructor-syntax": "error",
"interface-starts-with-i": "error",
"const-name-snakecase": "error",
"contract-name-camelcase": "error",
"event-name-camelcase": "error",
"payable-fallback": "error"
}
}