Enforce named parameters for function calls with 4 or more arguments. This rule may have some false positives
This rule accepts an array of options:
Index | Description | Default Value |
---|---|---|
0 | Rule severity. Must be one of “error”, “warn”, “off”. | warn |
1 | Minimum qty of unnamed parameters for a function call (to prevent false positives on builtin functions). | 4 |
{
"rules": {
"func-named-parameters": ["warn",4]
}
}
functionName('0xA81705c8C247C413a19A244938ae7f4A0393944e', 1e18)
functionName({ sender: '0xA81705c8C247C413a19A244938ae7f4A0393944e', amount: 1e18})
functionName({ sender: _senderAddress, amount: 1e18, token: _tokenAddress, receiver: _receiverAddress })
abi.encodePacked(_senderAddress, 1e18, _tokenAddress, _receiverAddress )
functionName(_senderAddress, 1e18, _tokenAddress, _receiverAddress )
This rule was introduced in Solhint 3.5.1