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 for rule severity. Must be one of “error”, “warn”, “off”. Defaults 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