Skip to content

Commit

Permalink
chore(solidity): add new linting rules
Browse files Browse the repository at this point in the history
  • Loading branch information
gitmp01 committed Jun 21, 2024
1 parent 4c118c1 commit c7eb07d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
6 changes: 5 additions & 1 deletion solidity/.solhint.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"extends": "solhint:default"
"extends": "solhint:default",
"rules": {
"ordering": "warn",
"private-vars-leading-underscore": ["warn", { "strict": false }]
}
}
2 changes: 1 addition & 1 deletion solidity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"scripts": {
"build": "forge build",
"test": "forge test",
"lint": "solhint src/**/*.sol",
"lint": "npx solhint src/**/*.sol",
"prettier": "prettier --write ./src ./test",
"coverage": "forge coverage --report summary"
},
Expand Down
1 change: 0 additions & 1 deletion solidity/src/FeesManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ contract FeesManager is IFeesManager, Ownable {
bytes32 public WITHDRAW_ROLE;
bytes32 public UPGRADE_ROLE;
bytes32 public SET_FEE_ROLE;
bytes32 SLOT_DESTINATION_CHAIN_ID = keccak256("SLOT_DESTINATION_CHAIN_ID");

struct Fee {
uint256 minFee;
Expand Down

0 comments on commit c7eb07d

Please sign in to comment.