solhint-community

interface-starts-with-i

Recommended Badge Category Badge Default Severity Badge error

The {“extends”: “solhint:recommended”} property in a configuration file enables this rule.

Description

Interfaces name should start with I

Options

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

Example Config

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

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.0.0-rc01

Resources