Unused contract detector#
Name: unused-contract
Reports abstract contracts, interfaces, and libraries that are not used in the source code.
Example#
- The abstract contract
A
is not used in the source code. - The interface
I
is not used in the source code. - The library
L
is not used in the source code.
Parameters#
Command-line name | TOML name | Type | Default value | Description |
---|---|---|---|---|
--abstract/--no-abstract |
abstract |
bool |
true |
Whether to report unused abstract contracts. |
--interface/--no-interface |
interface |
bool |
true |
Whether to report unused interfaces. |
--library/--no-library |
library |
bool |
true |
Whether to report unused libraries. |