OutdatedTask class tasks

A task that checks if any of your installed dependencies have to be updated.

It runs dart pub outdated to check on the current status of all packages. If any package can be updated, that update will be printed as a recommendation, but won't reject your commit.

The outdatedLevel however configures, which levels of outdatedness are acceptable. Any updates that at least reach the level are considered mandatory and if available will reject the commit. See OutdatedLevel for more details on which versions each level includes.

Implemented types
Mixed in types

Constructors

OutdatedTask({required ProgramRunner programRunner, required TaskLogger logger, required Config config, required OutdatedLevel outdatedLevel})
Default Constructor.
const

Properties

callForEmptyEntries bool
Specifies, whether the task should still be executed, even if no files match.
no setteroverride
config Config
The loaded Config for the hooks
final
filePattern Pattern
The pattern that the RepoEntry.file is matched against.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
logger TaskLogger
The TaskLogger instance used by this task.
final
outdatedLevel OutdatedLevel
The level of outdatedness that will cause the task to reject the commit.
final
programRunner ProgramRunner
The ProgramRunner instance used by this task.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
taskName String
Returns the user-visible name of the task.
no setteroverride

Methods

call(Iterable<RepoEntry> entries) Future<TaskResult>
Executes the task on all given entries.
override
canProcess(RepoEntry entry) bool
Checks if a RepoEntry can be processed by this task.
inherited
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