avoid-dependency-overrides
Warns when a pubspec file has the dependency_overrides
section.
Using a dependency override involves some risk. For example, using an override to specify a version outside the range that the package claims to support, or using an override to specify a local copy of a package that has unexpected behaviors, may break your application.
Example
❌ Bad:
pubspec.yaml
name: some_package
description: ...
version: 1.0.0
dependency_overrides: # LINT: Avoid overriding dependencies.
✅ Good:
pubspec.yaml
name: some_package
description: ...
version: 1.0.0