-
Notifications
You must be signed in to change notification settings - Fork 0
/
.solhint.json
50 lines (48 loc) · 1.6 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
{
"extends": "solhint:default",
"rules": {
"compiler-version": ["error","^0.8.0"],
"reentrancy": "warn",
"avoid-call-value": "warn",
"avoid-suicide": "error",
"avoid-sha3": "warn",
"avoid-throw": "warn",
"avoid-tx-origin": "warn",
"no-inline-assembly": "warn",
"not-rely-on-block-hash": "warn",
"code-complexity": ["warn",10],
"explicit-types": ["warn","explicit"],
"check-send-result": "warn",
"function-max-lines": ["warn",50],
"max-states-count": ["warn",27],
"no-console": "warn",
"no-empty-blocks": "warn",
"no-global-import": "warn",
"no-unused-import": "warn",
"no-unused-vars": "warn",
"payable-fallback": "warn",
"reason-string": ["warn",{"maxLength":32}],
"constructor-syntax": "warn",
"interface-starts-with-i": "warn",
"const-name-snakecase": "warn",
"contract-name-camelcase": "warn",
"event-name-camelcase": "warn",
"func-name-mixedcase": "warn",
"immutable-vars-naming": ["warn",{"immutablesAsConstants":true}],
"modifier-name-mixedcase": "warn",
"private-vars-leading-underscore": ["warn",{"strict":false}],
"func-visibility": ["warn",{"ignoreConstructors":true}],
"use-forbidden-name": "warn",
"var-name-mixedcase": "warn",
"state-visibility": "warn",
"imports-on-top": "warn",
"visibility-modifier-order": "warn",
"named-parameters-mapping": "off",
"gas-calldata-parameters": "warn",
"gas-custom-errors": "warn",
"gas-length-in-loops": "warn",
"gas-small-strings": "warn",
"gas-struct-packing": "off",
"quotes": ["error","double"]
}
}