The {“extends”: “solhint:recommended”} property in a configuration file enables this rule.
Visibility modifier must be first in list of modifiers.
This rule accepts a string option of rule severity. Must be one of “error”, “warn”, “off”. Default to warn.
{
"rules": {
"visibility-modifier-order": "warn"
}
}
pragma solidity 0.4.4;
contract A {
function a() public ownable() payable {}
}
pragma solidity 0.4.4;
contract A {
function a() ownable() public payable {}
}
This rule was introduced in Solhint 1.1.5