Created
January 19, 2018 21:26
-
-
Save maurelian/b1220a9f8794b29dac89215faebe0606 to your computer and use it in GitHub Desktop.
Solhint config oriented towards security
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"NOTE": "this JSON file configures solhint for errors on security risks, and warnings on areas that should be scrutinized further. It ignores items of style as configured.", | |
"rules": { | |
"reentrancy": "error", | |
"avoid-sha3": "error", | |
"avoid-suicide": "error", | |
"avoid-throw": "error", | |
"func-visibility": "error", | |
"state-visibility": "error", | |
"check-send-result": "error", | |
"avoid-call-value": "error", | |
"compiler-fixed ": "error", | |
"compiler-gt-0_4": "error", | |
"no-complex-fallback": "error", | |
"mark-callable-contracts": "error", | |
"multiple-sends": "error", | |
"no-simple-event-func-name": "error", | |
"avoid-tx-origin": "error", | |
"no-inline-assembly": "error", | |
"not-rely-on-block-hash": "error", | |
"avoid-low-level-calls": "error", | |
"func-name-mixedcase": false, | |
"func-param-name-mixedcase": false, | |
"var-name-mixedcase": false, | |
"event-name-camelcase": false, | |
"const-name-snakecase": false, | |
"modifier-name-mixedcase": false, | |
"contract-name-camelcase": false, | |
"use-forbidden-name": false, | |
"visibility-modifier-order": false, | |
"imports-on-top": false, | |
"two-lines-top-level-separator": false, | |
"func-order": false, | |
"quotes": false, | |
"no-mix-tabs-and-spaces": false, | |
"indent": [false, 4], | |
"bracket-align": false, | |
"array-declaration-spaces": false, | |
"separate-by-one-line-in-contract": false, | |
"expression-indent": false, | |
"statement-indent ": false, | |
"space-after-comma": false, | |
"no-spaces-before-semicolon": false, | |
"max-line-length": [false, 120], | |
"payable-fallback": false, | |
"no-empty-blocks": "warn", | |
"no-unused-vars": "warn", | |
"function-max-lines": [false, 45], | |
"code-complexity": ["warn", 7], | |
"max-states-count": ["warn", 15], | |
"not-rely-on-time": false | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment