hifi icon indicating copy to clipboard operation
hifi copied to clipboard

Add solhint rule to enforce that all interface function implementations should be "override"

Open scorpion9979 opened this issue 2 years ago • 0 comments

In the Hifi monorepo, all the interface function implementations use the "override" modifier. The issue here is that the "override" modifier has been made optional for interface functions since Solidity v0.8.8, and so any implementations that are defined without it would still result in successful compilation.

I think we should not just stick to our current coding style throughout the entire monorepo, but we should also enforce it by enabling the "comprehensive-interface" solhint rule.

scorpion9979 avatar Apr 18 '22 19:04 scorpion9979