unreferenced_exports library

The unreferenced-export audit as a library: the engine (auditUnreferencedExports) and the unreferenced: section of a project's buildkit.yaml it is configured by (UnreferencedExportsConfig). buildkit :unreferenced runs it.

Classes

AllowedUnreferencedExport
A symbol excused from the audit, and why.
ExportedSymbol
One exported symbol the audit checked.
UnreferencedExport
One symbol nothing in lib/ or bin/ names.
UnreferencedExportReport
What one run concluded.
UnreferencedExportsConfig
The audit's configuration, as one project's buildkit.yaml states it.

Constants

unreferencedConfigKey → const String
The section key in buildkit.yaml.

Functions

auditUnreferencedExports({required String root, required String packagePrefix, Set<String> exclude = const {}, List<String> consumerRepositories = const [], List<AllowedUnreferencedExport> allowlist = const []}) → UnreferencedExportReport
Runs the audit over the packages directly under root whose name starts with packagePrefix, except those in exclude.