solhint

imports-order

Category Badge Default Severity Badge warn

Description

Order the imports of the contract to follow a certain hierarchy (read “Notes section”)

Options

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

Example Config

{
  "rules": {
    "imports-order": "warn"
  }
}

Notes

Examples

This rule does not have examples.

Version

This rule was introduced in Solhint 5.0.2

Resources