Solidity v0.8.18 introduced named parameters on the mappings definition.
This rule accepts a string option of rule severity. Must be one of “error”, “warn”, “off”. Default to warn.
{
"rules": {
"named-parameters-mapping": "warn"
}
}
mapping(string name => uint256 balance) public users;
mapping(address owner => mapping(address token => uint256 balance)) public tokenBalances;
mapping(address owner => mapping(address => uint256)) public tokenBalances;
mapping(address owner => mapping(address token => uint256)) public tokenBalances;
mapping(address owner => mapping(address => uint256 balance)) public tokenBalances;
mapping(address => uint256)) public tokenBalances;
mapping(address token => uint256)) public tokenBalances;
mapping(address => uint256 balance)) public tokenBalances;
mapping(address => mapping(address token => uint256 balance)) public tokenBalances;
This rule was introduced in Solhint 3.4.0