diff --git a/packages/contracts-rfq/.solhint.json b/packages/contracts-rfq/.solhint.json index ce2220e0b7..2a0106eecd 100644 --- a/packages/contracts-rfq/.solhint.json +++ b/packages/contracts-rfq/.solhint.json @@ -1,3 +1,14 @@ { - "extends": "solhint:recommended" + "extends": "solhint:recommended", + "rules": { + "code-complexity": ["error"], + "func-name-mixedcase": "error", + "func-visibility": ["error", { "ignoreConstructors": true }], + "gas-custom-errors": "off", + "immutable-vars-naming": ["error", { "immutablesAsConstants": false }], + "max-line-length": ["warn", 120], + "modifier-name-mixedcase": "error", + "ordering": "warn", + "var-name-mixedcase": "error" + } } diff --git a/packages/contracts-rfq/.solhintignore b/packages/contracts-rfq/.solhintignore new file mode 100644 index 0000000000..b1133d75d8 --- /dev/null +++ b/packages/contracts-rfq/.solhintignore @@ -0,0 +1,5 @@ +contracts/FastBridge.sol +contracts/interfaces/IFastBridge.sol +script/FastBridge.s.sol +test/FastBridge.t.sol +test/FastBridgeMock.sol diff --git a/packages/contracts-rfq/package.json b/packages/contracts-rfq/package.json index 687ab60ef3..fff3c066ec 100644 --- a/packages/contracts-rfq/package.json +++ b/packages/contracts-rfq/package.json @@ -24,7 +24,7 @@ "lint:check": "forge fmt --check && npm run solhint:check", "ci:lint": "npm run lint:check", "build:go": "./flatten.sh contracts/*.sol test/*.sol", - "solhint": "solhint '{contracts,script,test}/**/*.sol' --fix", + "solhint": "solhint '{contracts,script,test}/**/*.sol' --fix --noPrompt", "solhint:check": "solhint '{contracts,script,test}/**/*.sol'" } }