Skip to main content

add-resolution-workspace

effort: 4m
has IDE fix
teams+

Warns when a package is missing the resolution: workspace entry.

If you are using pub workspaces, this rule helps to ensure that all subpackages are included into the workspace.

note

To correctly scope the rule, use the include configuration option.

Example

❌ Bad:

pubspec.yaml
name: some_package # LINT: Add 'resolution: workspace' to include the package into your pub workspace.
description: ...
version: 1.0.0

✅ Good:

pubspec.yaml
name: some_package
resolution: workspace
description: ...
version: 1.0.0