Skip to content

depend_on_referenced_packages lint false positive in workspaceΒ #59721

@arefimenko

Description

@arefimenko

Steps:

  1. create pub workspace relative to documentation https://dart.dev/tools/pub/workspaces
  2. add dependency (or dev_dependency) into root pubspec.yaml
  3. add depend_on_referenced_packages lint into root analysis_options.yaml
  4. try to use added dependency in workspace package/project

Expected behaviour: static analysis DOES NOT show info message depend_on_referenced_packages
Actual behaviour: static analysis SHOWS info message depend_on_referenced_packages

Repository example: https://github.com/arefimenko/dart_workspace, file with analysis hint – https://github.com/arefimenko/dart_workspace/blob/main/pkgs/core/lib/src/core_base.dart

Dart version: Dart SDK version: 3.6.0 (stable) (Thu Dec 5 07:46:24 2024 -0800) on "macos_arm64"

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work onarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-linterIssues with the analyzer's support for the linter packagelinter-set-coretype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions