imports-on-top
Enforces that all import statements are at the top of the file.
Rule details
Section titled “Rule details”Examples of correct code for this rule:
import "path/to/contract.sol";
contract Example {}Examples of incorrect code for this rule:
contract Example {}
import "path/to/contract.sol";