Gelato-automations/.solhint.json

47 lines
1.5 KiB
JSON
Raw Normal View History

2020-10-18 10:30:16 +00:00
{
"extends": "solhint:recommended",
"plugins": ["prettier"],
"rules": {
"prettier/prettier": "error",
2020-11-02 17:26:30 +00:00
"code-complexity": ["error", 5],
"function-max-lines": ["error", 40],
"max-line-length": ["error", 100],
"max-states-count": ["error", 3],
"no-empty-blocks": "error",
"no-unused-vars": "error",
"payable-fallback": "off",
2020-11-16 16:55:04 +00:00
"reason-string": ["off", { "maxLength": 32 }],
2020-11-02 17:26:30 +00:00
"constructor-syntax": "off",
"comprehensive-interface": "off",
"quotes": ["error", "double"],
2020-10-18 10:30:16 +00:00
"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",
2020-11-16 16:55:04 +00:00
"private-vars-leading-underscore": ["error", { "strict": false }],
2020-10-18 10:30:16 +00:00
"var-name-mixedcase": "error",
2020-11-02 17:26:30 +00:00
"imports-on-top": "error",
"ordering": "error",
2020-10-18 10:30:16 +00:00
"visibility-modifier-order": "error",
"avoid-call-value": "off",
"avoid-low-level-calls": "off",
2020-11-02 17:26:30 +00:00
"avoid-sha3": "error",
"avoid-suicide": "error",
"avoid-throw": "error",
"avoid-tx-origin": "off",
"check-send-result": "error",
"compiler-version": ["error", "0.7.4"],
"mark-callable-contracts": "off",
2020-11-16 16:55:04 +00:00
"func-visibility": ["error", { "ignoreConstructors": true }],
2020-11-02 17:26:30 +00:00
"multiple-sends": "error",
"no-complex-fallback": "error",
2020-10-18 10:30:16 +00:00
"no-inline-assembly": "off",
2020-11-02 17:26:30 +00:00
"not-rely-on-block-hash": "error",
"not-rely-on-time": "error",
"reentrancy": "error",
2020-10-18 10:30:16 +00:00
"state-visibility": "error"
}
}