Skip to content

Commit

Permalink
chore: solhint rules, exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiTimesChi committed Sep 24, 2024
1 parent 3511779 commit f755a8e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
13 changes: 12 additions & 1 deletion packages/contracts-rfq/.solhint.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
5 changes: 5 additions & 0 deletions packages/contracts-rfq/.solhintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
contracts/FastBridge.sol
contracts/interfaces/IFastBridge.sol
script/FastBridge.s.sol
test/FastBridge.t.sol
test/FastBridgeMock.sol
2 changes: 1 addition & 1 deletion packages/contracts-rfq/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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'"
}
}

0 comments on commit f755a8e

Please sign in to comment.