solhint

interface-starts-with-i

Category Badge Default Severity Badge warn

Description

Solidity Interfaces names should start with an I

Options

This rule accepts a string option of rule severity. Must be one of “error”, “warn”, “off”. Default to warn.

Example Config

{
  "rules": {
    "interface-starts-with-i": "warn"
  }
}

Examples

👍 Examples of correct code for this rule

Interface name starts with I

interface IFoo { function foo () external; }

👎 Examples of incorrect code for this rule

Interface name doesnt start with I

interface Foo { function foo () external; }

Version

This rule was introduced in Solhint 4.5.0

Resources