#
explicit-types
#
Description
Forbid or enforce explicit types (like uint256) that have an alias (like uint).
#
Options
#
Example Config
{
"id": "explicit-types",
"severity": "WARNING",
"data": "explicit"
}
#
Examples
#
Good
If explicit is selected
uint256 public variableName;
If implicit is selected
uint public variableName;
If explicit is selected
uint256 public variableName = uint256(5);
#
Bad
If explicit is selected
uint public variableName;
If implicit is selected
uint256 public variableName;
At any setting
uint public variableName = uint256(5);