Solhint

Solhint

Community Analyzer

Check that all public or external functions are override. This is iseful to make sure that the whole API is extracted in an interface SOLHINT-W1016

Anti-pattern
Minor

Check that all public or external functions are override. This is iseful to make sure that the whole API is extracted in an interface.

Bad Practice

  1. A public function is not an override
pragma solidity ^0.7.0;

contract Foo {
  function foo() public {}
}

Recommended

  1. All public functions are overrides
pragma solidity ^0.7.0;

contract Foo is FooInterface {
  function foo() public override {}
}

Learn more

comprehensive-interface on Solhint's documentation.