AnalyzeTask class tasks

A task the runs dart analyze to check for problems.

This task analyzes all files in the repository for problems and then filters the results for all files that have been staged in this commit. If anything was found for the staged files, the task will print out the problems and exit with TaskResult.rejected.

Implemented types
Mixed in types

Constructors

AnalyzeTask({required ProgramRunner programRunner, required FileResolver fileResolver, required TaskLogger logger})
Default Constructor.
const

Properties

callForEmptyEntries bool
Specifies, whether the task should still be executed, even if no files match.
no setteroverride
filePattern Pattern
The pattern that the RepoEntry.file is matched against.
no setteroverride
fileResolver FileResolver
The FileResolver instance used by this task.
final
hashCode int
The hash code for this object.
no setterinherited
logger TaskLogger
The TaskLogger instance used by this task.
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