Skip to content

Running "dart analyze" on a monorepo doesn't work with ignored files  #54048

Open
@johnpryan

Description

@johnpryan

dart analyze doesn't respect files in the exclude section of a sub-package's analysis_options.yaml file

Steps to reproduce

  1. Clone github.com/dart-lang/dart-pad
  2. Run pub get for each package in the pkgs/ directory
  3. From the root directory, run dart analyze.
  4. Observe that analysis errors are reported for files that are listed in the exclude section of pkgs/dart_pad/analysis_options.yaml, such as build/. Running dart analyze from pkgs/dart_pad completes with no issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestanalyzer-analysis-optionsarea-dart-modelFor issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.dart-cli-analyzeIssues related to the 'dart analyze' tooltype-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