8000 `depend_on_referenced_packages` triggers falsely on virtual `flutter_gen` package · Issue #58690 · dart-lang/sdk · GitHub
[go: up one dir, main page]

Skip to content
depend_on_referenced_packages triggers falsely on virtual flutter_gen package #58690
@goderbauer

Description

@goderbauer

When a flutter developer adds internationalization to their app as explained in https://docs.flutter.dev/development/accessibility-and-localization/internationalization#adding-your-own-localized-messages it generates a virtual flutter_gen package that the developer has to import in their app (see examples on the linked page). That package does not show up in the pubspec.yaml, but the depend_on_referenced_packages complains about it missing in there.

The flutter_gen package is made available by a rewrite of the package config file. It's a little suspect, but that's what we have right now. Long-term we can hopefully replace this with a macro or something.

In the short-term we need to fix the lint to not complain about this non-existent dependency.

Metadata

Metadata

Assignees

Labels

devexp-linterIssues with the analyzer's support for the linter packagelegacy-area-analyzerUse area-devexp instead.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0