Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 1.54 KB

duplicated-imports.md

File metadata and controls

41 lines (33 loc) · 1.54 KB
warning layout title
This is a dynamically generated file. Do not edit manually.
default
duplicated-imports | Solhint

duplicated-imports

Category Badge Default Severity Badge warn

Description

Check if an import is done twice in the same file and there is no alias

Options

This rule accepts a string option of rule severity. Must be one of "error", "warn", "off". Defaults to warn.

Example Config

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

Notes

  • Rule reports "(inline) duplicated" if the same object is imported more than once in the same import statement
  • Rule reports "(globalSamePath) duplicated" if the same object is imported on another import statement from same location
  • Rule reports "(globalDiffPath) duplicated" if the same object is imported on another import statement, from other location, but no alias
  • Rule does NOT support this kind of import "import * as Alias from "./filename.sol"

Examples

This rule does not have examples.

Version

This rule is introduced in the latest version.

Resources