From 0af909c28a56e7aedc8b8d116dbe9e92357715e8 Mon Sep 17 00:00:00 2001 From: Sergey <2901744+evercoinx@users.noreply.github.com.> Date: Mon, 2 Sep 2024 19:57:20 +0200 Subject: [PATCH] Update solhint configuration --- .solhint.json | 6 +++--- contracts/interfaces/IValidatorShare.sol | 12 ++++-------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/.solhint.json b/.solhint.json index c467734d..52c7acc2 100644 --- a/.solhint.json +++ b/.solhint.json @@ -18,8 +18,8 @@ "event-name-camelcase": "error", "explicit-types": ["error", "explicit"], "foundry-test-functions": "off", - "func-name-mixedcase": "error", - "func-named-parameters": ["error", 11], + "func-name-mixedcase": "off", + "func-named-parameters": ["error", 12], "func-param-name-mixedcase": "error", "func-visibility": ["error", { "ignoreConstructors": true }], "function-max-lines": ["error", 75], @@ -46,7 +46,7 @@ "payable-fallback": "error", "private-vars-leading-underscore": "off", "quotes": ["error", "double"], - "reason-string": ["error", { "maxLength": 76 }], + "reason-string": ["error", { "maxLength": 80 }], "reentrancy": "error", "state-visibility": "error", "use-forbidden-name": "error", diff --git a/contracts/interfaces/IValidatorShare.sol b/contracts/interfaces/IValidatorShare.sol index b13c7c36..66416d56 100644 --- a/contracts/interfaces/IValidatorShare.sol +++ b/contracts/interfaces/IValidatorShare.sol @@ -23,27 +23,23 @@ interface IValidatorShare { external returns (uint256); - // solhint-disable-next-line func-name-mixedcase - function sellVoucher_new(uint256 claimAmount, uint256 maximumSharesToBurn) + function sellVoucher_new(uint256 _claimAmount, uint256 _maximumSharesToBurn) external; - // solhint-disable-next-line func-name-mixedcase - function sellVoucher_newPOL(uint256 claimAmount, uint256 maximumSharesToBurn) + function sellVoucher_newPOL(uint256 _claimAmount, uint256 _maximumSharesToBurn) external; - // solhint-disable-next-line func-name-mixedcase - function unstakeClaimTokens_new(uint256 unbondNonce) external; + function unstakeClaimTokens_new(uint256 _unbondNonce) external; function restake() external returns (uint256, uint256); function withdrawRewards() external; - function getTotalStake(address user) + function getTotalStake(address _user) external view returns (uint256, uint256); - // solhint-disable-next-line func-name-mixedcase function unbonds_new(address _address, uint256 _unbondNonce) external view