The {“extends”: “solhint:recommended”} property in a configuration file enables this rule.
Check identifier and type name casing conforms to the style guide
This rule accepts an array of options:
Index | Description | Default Value |
---|---|---|
0 | Rule severity. Must be one of “error”, “warn”, “off”. | warn |
{
"rules": {
"style-guide-casing": ["warn"]
}
}
uint private immutable WAD_DECIMALS = 18
uint private constant WAD_DECIMALS = 18
function foo_bar() {}
contract Foo {}
uint private immutable wad_decimals = 18
function foo_bar() {}
modifier FOO_BAR() {}
uint private FOO_BAR;
contract foo {}
This rule is introduced in the latest version.