AuditOptions class

Configuration options for running a dependency audit.

Controls various aspects of the audit process including which dependencies to include, output format, and whether to apply fixes.

Constructors

AuditOptions.new({required String projectPath, String format = 'text', bool includeDevDependencies = false, Set<String> ignoredPackages = const {}, bool applyFixes = false})
Creates a new AuditOptions instance.

Properties

applyFixes bool
Whether to automatically apply safe fixes.
final
format String
The output format for the report ('text' or 'json').
final
hashCode int
The hash code for this object.
no setterinherited
ignoredPackages Set<String>
Set of package names to ignore during the audit.
final
includeDevDependencies bool
Whether to include dev_dependencies in the audit.
final
projectPath String
The path to the project directory to audit.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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