UnusedCodeAnalyzer class

The analyzer responsible for collecting unused code reports.

Constructors

UnusedCodeAnalyzer([Logger? _logger])
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getReporter({required String name, required IOSink output}) Reporter<UnusedCodeFileReport, UnusedCodeReportParams>?
Returns a reporter for the given name. Use the reporter to convert analysis reports to console, JSON or other supported format.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
runCliAnalysis(Iterable<String> folders, String rootFolder, UnusedCodeConfig config, {String? sdkPath}) Future<Iterable<UnusedCodeFileReport>>
Returns a list of unused code reports for analyzing all files in the given folders. The analysis is configured with the config.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited