Check that all public or external functions are override. This is iseful to make sure that the whole API is extracted in an interface.
This rule accepts a string option of rule severity. Must be one of “error”, “warn”, “off”. Default to warn.
{
"rules": {
"comprehensive-interface": "warn"
}
}
pragma solidity ^0.7.0;
contract Foo is FooInterface {
function foo() public override {}
}
pragma solidity ^0.7.0;
contract Foo {
function foo() public {}
}
This rule was introduced in Solhint 3.3.0