diff --git a/.solhint.tests.json b/.solhint.tests.json new file mode 100644 index 00000000..c1800a5f --- /dev/null +++ b/.solhint.tests.json @@ -0,0 +1,23 @@ +{ + "extends": "solhint:recommended", + "rules": { + "compiler-version": ["off"], + "constructor-syntax": "warn", + "quotes": ["error", "single"], + "func-visibility": ["warn", { "ignoreConstructors": true }], + "not-rely-on-time": "off", + "func-name-mixedcase": "off", + "var-name-mixedcase": "off", + "const-name-snakecase": "off", + "no-inline-assembly": "off", + "no-empty-blocks": "off", + "definition-name-capwords": "off", + "named-parameters-function": "off", + "no-global-import": "off", + "max-states-count": "off", + "private-vars-leading-underscore": ["warn", { "strict": false }], + "ordering": "warn", + "immutable-name-snakecase": "warn", + "avoid-low-level-calls": "off" + } +} diff --git a/package.json b/package.json index fd0625d8..159dbb7e 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "lint:check": "yarn lint:sol-tests && yarn lint:sol-logic && forge fmt --check", "lint:fix": "sort-package-json && forge fmt && yarn lint:sol-tests --fix && yarn lint:sol-logic --fix", "lint:sol-logic": "solhint -c .solhint.json 'solidity/contracts/**/*.sol' 'solidity/interfaces/**/*.sol'", - "lint:sol-tests": "solhint 'solidity/test/**/*.sol'", + "lint:sol-tests": "solhint -c .solhint.tests.json 'solidity/test/**/*.sol'", "prepare": "husky install", "test": "forge test -vvv", "test:integration": "forge test --match-contract Integration -vvv",