dart_pre_commit library

Classes

AnalyzeTask tasks
A task the runs dart analyze to check for problems.
ConsoleLogger
An advanced logger, that providers console optimized, interactive logging.
FileResolver
Helper class to resolve file paths
FileTask
A task that is run multiple times, once for every matching file.
FixImportsTask tasks
A task that scans dart files for unclean imports and fixes them.
FormatTask tasks
A task the runs dart format on the given file.
Hooks
A callable class the runs the hooks on a repository.
HooksConfig
The configuration to create dependency-injected Hooks via HooksProvider.
HooksProvider
A static class to give scope to hookProvider.
HooksProviderInternal
A static class that contains all internally used providers.
Logger
The primary logger interface, with status functionality.
NullsafeTask tasks
A task that checks if any of your dependencies can be made nullsafe.
OutdatedTask tasks
A task that checks if any of your installed dependencies have to be updated.
OutdatedTaskBase
An internal base class for OutdatedTask and NullsafeTask.
ProgramRunner
A helper class to run subprocessed easily.
PullUpDependenciesTask tasks
This task scans the lockfile to check if dependencies should be pulled up.
RepoEntry
Describes a file in the repository to be analyzed.
RepoTask
A task that runs once for the whole repository.
SimpleLogger
A simple logger class, the provides file-optimized logs.
TaskBase
The base class for all tasks.
TaskLogger
The interface for the logger as TaskBase classes expect it.

Enums

HookResult
The result of a Hooks call.
LogLevel
The logging level that different log messages can have.
OutdatedLevel
The different levels of outdated-ness that can be checked.
TaskResult
The possible result states of a generic task.
TaskStatus
The status a TaskBase can be in.

Extensions

HookResultX on HookResult
Extension methods for HookResult
LoggerX on Logger
Extensions to the Logger class.
LogLevelX on LogLevel
Extensions on LogLevel, that add additional logic to the enum.
OutdatedLevelX on OutdatedLevel
Extensions on OutdatedLevel, that add additional logic to the enum.
TaskBaseX on TaskBase
Helper methods that decorate TaskBase.
TaskResultX on TaskResult
Methodical extensions for the TaskResult enum.

Exceptions / Errors

ProgramExitException
An exception that gets thrown if a subprocess exits with an unexpected code.