solhint

import-path-check

Recommended Badge Category Badge Default Severity Badge warn

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

Description

Check if an import file exits in target path

Options

This rule accepts an array of options:

Index Description Default Value
0 Rule severity. Must be one of “error”, “warn”, “off”. warn
1 Array of allowed base path patterns for imports. read DEFAULT_LOCATIONS

Example Config

{
  "rules": {
    "import-path-check": [
      "warn",
      [
        "[~dependenciesPath]"
      ]
    ]
  }
}

Notes

Examples

This rule does not have examples.

Version

This rule was introduced in Solhint 5.1.0

Resources