# dependency_validator

> Find missing, unused and misplaced dependencies in a Dart package

Source: https://talira.ai/catalog/dependency-validator-8tkt5023
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / linting / unused code](https://talira.ai/categories/developer-tools/linting/unused-code), [languages / dart](https://talira.ai/categories/languages/dart)
- Licence: Apache-2.0[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Workiva Inc.](https://talira.ai/orgs/workiva.md)

dependency_validator is a Dart command-line tool from Workiva that checks a package's pubspec.yaml against what its code actually imports. It reports dependencies that are missing, unused, under-promoted (used in lib/, bin/ or hook/ but declared only as a dev_dependency) and over-promoted (declared as a dependency but used only outside those folders), and counts packages that provide an executable or an auto-applied builder as used. A dart_dependency_validator.yaml file can ignore packages, exclude paths and allow pinned versions, and it validates every package in a Pub workspace from the root.

## Links

- GitHub: https://github.com/Workiva/dependency_validator

## Problems it solves

- find unused dependencies in my Flutter or Dart pubspec
- catch a package my Dart code imports but pubspec.yaml doesn't declare
- check which dev_dependencies should really be regular dependencies in Dart

## Features

- Reports missing and unused dependencies in pubspec.yaml
- Flags dev_dependencies used in lib/, bin/ or hook/, and dependencies used only outside them
- Counts packages that provide executables or auto-applied builders as used
- Ignore packages, exclude paths and allow pins in dart_dependency_validator.yaml
- Validates every package in a Pub workspace

## Trust

Overall: 0.41 out of 1.
Signals: maintenance 0.62, adoption 0.37, momentum 0.06, community 0.68, backing 0.30, extensibility 0.00.

- last commit 54 days ago
- 25 commits in the last 90 days
- latest release 5.1.0 2 months ago
- 66 GitHub stars
- 50 contributors
- backed by Workiva Inc.

## Alternatives

- [Knip](https://talira.ai/catalog/knip-2jvd5pyb.md): Find unused files, dependencies and exports in JavaScript and TypeScript projects

## Sources

[^1]: https://github.com/Workiva/dependency_validator/blob/master/LICENSE (checked 28 Nov 2026)
