NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev
pub.dev, #2148 most downloaded on pub.dev
A small collection of pre commit hooks to format and lint dart code
Latest stable
6.1.5
Last release 2 months ago
22 Sep 2026
Ships fairly regularly
a new release about every 5 weeks
Nearly every release is documented
notes for 44 of 45 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
51 releases · first in 2020
Drag across the ruler to compare, or tap a release to open it.
Updated min sdk version to ^3.13.0
The package and it's documentation are available at pub.dev.
Updated min sdk version to ^3.13.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
The package and it's documentation are available at pub.dev.
Updated min sdk version to ^3.12.0
The package and it's documentation are available at pub.dev.
Updated min sdk version to ^3.11.0
The package and it's documentation are available at pub.dev.
Updated min sdk version to ^3.11.0
The package and it's documentation are available at pub.dev.
Widen analyzer version constraints
The package and it's documentation are available at pub.dev.
Updated min sdk version to ^3.10.0
Refactored project to use injectable/get\_it instead of riverpod
Updated min sdk version to ^3.9.0
Updated min sdk version to ^3.8.0
[5.4.6]: https://github.com/Skycoder42/dart_pre_commit/compare/v5.4.5...v5.4.6
Fixed incompatibility with osv-scanner Version 2.0
[5.4.4]: https://github.com/Skycoder42/dart_pre_commit/compare/v5.4.3...v5.4.4
[5.4.3]: https://github.com/Skycoder42/dart_pre_commit/compare/v5.4.2...v5.4.3
Make osv-scanner compatible with dart workspaces
Make pull-up-dependencies compatible with dart workspaces
Added global configuration option exclude
exclude (#4)
ignore-unstaged-files to analyze and custom-lint tasks (#31)
exclude to fully exclude files3.5.0The package and it's documentation are available at pub.dev.
[5.3.1]: https://github.com/Skycoder42/dart_pre_commit/compare/v5.3.0...v5.3.1
analyze task now honors error-level setting and will only fail if the analyzer fails as well
3.3.0analyze task now honors error-level setting and will only fail if the analyzer fails as well (#30)
scan-mode option of the analyze task (#30)
The package and it's documentation are available at pub.dev.
Major update of analyzer to 6.\*
[5.2.0+1]: https://github.com/Skycoder42/dart_pre_commit/compare/v5.2.0...v5.2.0+1
Make osv-scanner task configurable
The package and it's documentation are available at pub.dev.
[5.1.0+1]: https://github.com/Skycoder42/dart_pre_commit/compare/v5.1.0...v5.1.0+1
Update minimal dart SDK to 3.0.0
Add support for running custom\_lint as pre commit hook via custom-lint task
Scans the pubspec.lock to check if any of the dependencies has a know vulnerability
osv-scanner Task to automatically check for dependencies with security issues
osv-scanner binary can be foundpubspec.lock to check if any of the dependencies has a know vulnerabilityThe package and it's documentation are available at pub.dev.
Please check the README on how to use the tool with these breaking changes. Below you can find a list of the most significant changes to the package.
The whole public API and command line interface has been overhauled. Please check the README on how to use the tool with these breaking changes. Below you can find a list of the most significant changes to the package.
DartPreCommit.run for a simple entrypoint to invoke the hooks from codeThe package and it's documentation are available at pub.dev.
The package and it's documentation are available at pub.dev.
The package and it's documentation are available at pub.dev.
The package and it's documentation are available at pub.dev.
Update min dart SDK to 2.17.0, update dependencies
The package and it's documentation are available at pub.dev.
FlutterCompatTask: Checks if a dart project can be added to a newly created flutter project. Useful to ensure that no package versions are required th
FlutterCompatTask: Checks if a dart project can be added to a newly created flutter project. Useful to ensure that
no package versions are required that are then what flutter currently supportsTestImportTask: Checks if any test files import library exports instead of sourcesLibExportTask: Checks if all src files that contain package public definitions are exported somewhere in libThe package and it's documentation are available at pub.dev.
## Changelog ### Changed - Dependency updates
The analyze task was not working anymore, as the output format of dart analyze has changed. The task was now adjusted to handle the new format only
analyze task was not working anymore, as the output format of
dart analyze has changed. The task was now adjusted to handle the new format
onlyThe library-imports can now be properly ignored by adding // dart_pre_commit:ignore-library-import before the line where the import happens
library-imports can now be properly ignored by adding
// dart_pre_commit:ignore-library-import before the line where the import
happensNew Task library-imports (#12)- Scans the source files (files under lib/src) and test files
library-imports (#12)- Scans the source files (files under lib/src) and test fileslib, except those placed in
lib/srcBasic Interface to create custom file and repository based tasks
--[no-]ansi CLI option to explicitly enable/disable rich logging (#10)Migrated package to nullsafety
Refactored Hooks API to allow custom hooks
Generalized HookResult to be independent of specific tasks- error has been removed, instead a Exceptions are thrown in case of fatal errors
linter, pullUp have been replaced by the more generic rejected state
refactor logger (#3)- there is a pretty and a simple logger now
the correct one is auto-detected based on the availability of a tty
provides a useful status message so other logs/exceptions can be easily associated with the task
debug-logging has been added to all tasks
log-levels can be configured to show certain log messages
Ported package to use freezed dataclasses
Improved status icons
Added refresh parameter to logger interface
Updated dependencies
as/show/hide statements, that fall into a new line## Changelog ### Changed - Updated dependencies
## Changelog ### Changed - Updated dependencies
--[no-]ansi CLI option to explicitly enable/disable rich logging
--[no-]ansi CLI option to explicitly enable/disable rich logging (#10)refresh parameter to logger interfaceOutdated task: Checks if any packages can be updated
Basic Interface to create custom file and repository based tasks
Refactored Hooks API to allow custom hooks
Generalized HookResult to be independent of specific tasks- error has been removed, instead a Exceptions are thrown in case of fatal errors
linter, pullUp have been replaced by the more generic rejected state
refactor logger (#3)- there is a pretty and a simple logger now
the correct one is auto-detected based on the availability of a tty
provides a useful status message so other logs/exceptions can be easily associated with the task
debug-logging has been added to all tasks
log-levels can be configured to show certain log messages
as/show/hide statements, that fall into a new line## Changelog ### Changed - Migrated package to nullsafety
Include pubspec.yaml into analysis step
dart analyze, if no files are to be analyzedfix-imports now works for imports with trailing comments
Fixed problem with repositories where the dart project folder beeing scanned is not the the git root folder
Fixed bug that caused a crash in --check-pull-up if dependencies declared in the pubspec.yaml are missing in pubspec.lock
--check-pull-up if dependencies declared in
the pubspec.yaml are missing in pubspec.lock (#1)Support for check if the version of dart dependencies can be pulled up to a higher version from the lockfile
Fixed bug where the tool tried to format deleted files
dart analyze now treats lint infos as errors
dart analyze now treats lint infos as errors## Changelog ### Added - Automatic deployment
Nothing published for this version
One column per quarter.