#
one-contract-per-file
#
Description
Imported object name is not being used by the contract.
#
Options
This rule does not require any options.
#
Example Config
{
"id": "one-contract-per-file",
"severity": "WARNING"
}
#
Examples
#
Good
Imported object is being used
import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
Contract MyToken is ERC20 {}
#
Bad
Imported object is not being used
import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
Contract B {}